Commit Graph

50 Commits

Author SHA1 Message Date
Aleks-Daniel Jakimenko
4eef4d2d76 No more /o, modifiers sorted alphabetically 2015-08-23 21:22:12 +03:00
Alex Schroeder
58e9a1e240 use v5.10 everywhere + enabled test in meta.t 2015-08-18 10:48:03 +02:00
Alex Schroeder
9d3b5e25ee usemod.pl: fix XSS vulnerability for $HtmlLinks 2015-07-13 08:48:18 +02:00
Aleks-Daniel Jakimenko
c7bd5617ff No more trailing whitespace 2015-04-17 01:39:47 +03:00
Aleks-Daniel Jakimenko
6f8d281d79 No more "use vars"! 2015-04-10 13:31:28 +03:00
Aleks-Daniel Jakimenko
4492ede096 "use strict;" in modules (some modules have problems) 2015-03-27 03:01:01 +02:00
Aleks-Daniel Jakimenko
62c7553d82 'return undef' changed to 'return'
This command was used:
find . -type f -print0 | xargs -0 sed -i 's/return undef/return/g'

The idea behind this commit is described on http://oddmuse.org/wiki/Refactoring page.
In short: 'return undef' returns (undef) in list context (a list with one element),
which is wrong.
2015-02-27 12:10:18 +02:00
Alex Schroeder
5aba2ae56f Fixed typo in AddModuleDescription sub name 2014-08-21 22:23:23 +02:00
Alex Jakimenko
ee932dee37 Automatically reformatted modules 2014-08-21 07:29:46 +03:00
Alex Schroeder
f11e2a8731 getting rid of $Id$ tags in $WikiDescription
Replaced the $Id$ tags in $WikiDescription for all the modules and wiki.pl itself with a link to the source and an appropriate wiki page, if possible. This is shown in action=version and should help users figure out what another wiki has installed.
2012-04-19 02:18:45 +02:00
Alex Schroeder
b95e9ff9cf (UsemodRule): Fix bug by adding zero-width look-behind. 2011-01-19 17:39:43 +00:00
Alex Schroeder
5dd3a253e9 Copyright years 2011-01-19 16:52:18 +00:00
Alex Schroeder
af4b51ebf7 ($UseModExtraSpaceRequired): New option.
(UsemodRule): Use it for definition lists.
2011-01-19 16:39:38 +00:00
Alex Schroeder
05d095912b (UsemodRule): Use $UsemodHtmlRegExp instead of
$htmlre and no longer recompute it for every call.
2009-07-03 14:04:45 +00:00
Brian Curry
d6ba0b66ec * wiki.pl (@HtmlAttrStack): New global variable. This permits
the InElement() and [Add|Close]HtmlEnvironment() family of
functions to add, remove, and search against HTML tag attributes
for all recently stacked HTML tag environments. Previously, tag
attributes were not retained; they were simply returned as text
from the AddHtmlEnvironment() function. Markup modules producing
complex HTML -- particularly, complex HTML having deeply nested
span or div tags -- can leverage the newly rewritten functions,
below, to simplify, streamline, and "clean up" their markup code.
(InElement): Rewritten to use this new variable.
(AddHtmlEnvironment): Rewritten to use this new variable.
(CloseHtmlEnvironment): Rewritten to use this new variable.
(CloseHtmlEnvironments): Rewritten to use this new variable.
(CloseHtmlEnvironmentUntil): Rewritten to use this new variable.
(AddOrCloseHtmlEnvironment): New function. Added so as to avoid
duplicate redefinition in the Creole, Creole Addition, and Usemod
modules.
* modules/usemod.pl (UsemodRule): Corrected erroneous usage of the
InElement() function. (I don't think UsemodRule()	was ever quite
right, really; it's a bit surprising it worked this long!)
2008-11-05 09:42:05 +00:00
Alex Schroeder
00b34f582c Updated to GPLv3 and added a separate copyright line for Weakish Jiang. 2008-06-26 07:56:47 +00:00
Weakish Jiang
ae3ccdaf6a (UsemodRule) Fix a typo in regex. Should use \ instead of \ 2008-06-24 07:21:13 +00:00
Alex Schroeder
9d96012ec1 (RFC): Link to tools.ietf.org instead of
faqs.org.
2008-05-11 18:53:58 +00:00
Alex Schroeder
7b2c16f9d6 Add first, even, and odd classes
to tr elements.
2007-12-09 01:49:37 +00:00
Alex Schroeder
57977e9973 (UsemodRule): Add first, even, and odd classes
to tr elements.
2007-12-06 09:49:10 +00:00
Alex Schroeder
36f8105c5d *** empty log message *** 2007-12-06 09:48:57 +00:00
Alex Schroeder
610f69fce2 (UsemodRule): Changed an if into an elsif. 2006-09-12 16:39:35 +00:00
Alex Schroeder
0714a908de Commend explaining a further dependency on portrait support. 2006-03-18 19:51:09 +00:00
Alex Schroeder
d23be7fa97 (UsemodRule, WikiHeading): Prevent H1. 2005-12-28 01:28:04 +00:00
Alex Schroeder
4c02d585c7 (UsemodRule): Allow attributes in HTML tags as
proposed by Peter Gervai.
2005-11-06 23:51:33 +00:00
Alex Schroeder
f2ebfd7a20 Removed $DefaultStyleSheet. 2005-10-09 11:57:52 +00:00
Alex Schroeder
62cfafc67f (UsemodRule): Revers order of match and
InElement check as suggested by Markus Lude.  Without this patch,
single equal signs are eaten when $UseModMarkupInTitles is true.
2005-09-04 02:18:14 +00:00
Alex Schroeder
4f010bc287 (ISBN): Small fix declaring $len. 2005-08-22 19:36:54 +00:00
Alex Schroeder
2d27050b61 (ISBN): Changed B&N ISBN search URL. 2005-07-22 13:45:03 +00:00
Alex Schroeder
9f9f397201 (ISBN): ISBN numbers can be 10-14 digits, in
preparation of 2007-01-01 and beyond.
http://www.isbn-international.org/en/download/implementation-guidelines-04.pdf
2005-07-15 07:00:43 +00:00
Alex Schroeder
c0db690a0b Updated copyright years. 2005-01-06 11:35:04 +00:00
Alex Schroeder
bcfca35ade *** empty log message *** 2005-01-04 09:57:56 +00:00
Alex Schroeder
3d236e415b Use @MyInitVariables. 2005-01-04 09:14:02 +00:00
Alex Schroeder
4a2c25582b (UsemodRule): Used /o for one of the rules.
Fixed a bug that added paragraphs in titles if
$UseModMarkupInTitles was set.
2004-12-05 21:37:10 +00:00
Alex Schroeder
cb8767e8eb (UsemodRule): AddHtmlEnvironment('p') 2004-12-05 04:04:41 +00:00
Alex Schroeder
8c63e3223c (UsemodRule): Fix hr handling. 2004-12-03 08:48:41 +00:00
Alex Schroeder
11eecab404 (UsemodRule): Reset $PortraitSupportColor
after headers and hr.
2004-12-03 08:45:36 +00:00
Alex Schroeder
bb2bd3bad5 ($MyColorDiv): Renamed to $PortraitSupportColorDiv. 2004-11-27 21:25:07 +00:00
Alex Schroeder
02fdabc2bf (UsemodRule): Added PortraitSupportColorDiv support. 2004-11-27 21:23:33 +00:00
Alex Schroeder
430687c4b7 ($UseModMarkupInTitles): New option.
(UsemodRule): Use it.
2004-10-16 23:51:41 +00:00
Alex Schroeder
c3e9f7b558 ($UseModSpaceRequired, UsemodRule): Added a
copy of the unnumbered list rule and a new option.  If this option
is set to 0, the space after *, #, :, and ; is also no longer
required.
2004-10-15 22:52:02 +00:00
Alex Schroeder
5a830e1539 Add DefaultCSS for tables. 2004-10-13 19:52:08 +00:00
Alex Schroeder
ac84d70e02 (UsemodRule): Better matching of indented pre. 2004-09-05 18:44:09 +00:00
Alex Schroeder
5e812942cc (UsemodTableAttributes): New.
(UsemodRule): Use it.
2004-08-31 23:24:59 +00:00
Alex Schroeder
acc1fc3e09 (UsemodRule): XHTML conformance, use
InElement.
2004-08-13 02:32:14 +00:00
Alex Schroeder
95534c7ade Comment only. 2004-08-07 00:44:40 +00:00
Alex Schroeder
4bcbdf9266 Set %RuleOrder. 2004-07-14 14:57:15 +00:00
Alex Schroeder
feb7d35c28 (UsemodRule): New regexp for the whitespace
prefix rule.
2004-07-06 00:53:25 +00:00
Alex Schroeder
9ef67bbc59 (NewUsemodInitVariables): Bugfix -- call
OldUsemodInitVariables().
2004-07-04 23:11:24 +00:00
Alex Schroeder
b7077f71c1 Moved many rules from ApplyRules in wiki.pl to modules/usemod.pl.
(RFC, ISBN, WikiHeading): Moved to modules/usemod.pl.
(PrintSearchResult): No longer strip common HTML tags (since those
are now defined in modules/usemod.pl).
(ApplyRules): Moved many rules to modules/usemod.pl.
(InitLinkPatterns): No longer set $RFCPattern and $ISBNPattern.
(InitVariables): No longer set @HtmlTags
($RFCPattern, $ISBNPattern, @HtmlTags, $HtmlTags, $HtmlLinks)
($RawHtml): Moved to modules/usemod.pl.
2004-06-29 00:37:06 +00:00