Commit Graph

53 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
dfa71cb2e3 Revert "Changed EN DASH to - in copyright lines"
This reverts commit 06c7fedec0.
2015-07-28 22:44:53 +02:00
Alex Schroeder
06c7fedec0 Changed EN DASH to - in copyright lines
The EN DASH is not really required in year ranges such as 2012–2015 when
we're talking about comments in source code that is probably being
displayed in a fixed font anyway. Changing back to an ordinary hypen
allows us to make a meaningful test for use utf8.
2015-07-28 22:14:37 +02:00
Aleks-Daniel Jakimenko
6f8d281d79 No more "use vars"! 2015-04-10 13:31:28 +03:00
Alex Schroeder
a8ea996232 markup.pl: fix issue that caused test to fail
The hashref for the attributes cannot be undefined. Use {} instead of
undef.
2015-03-30 00:20:27 +02:00
Alex Schroeder
09697fba23 Merge commit '5e4426b' 2015-03-27 12:12:47 +01:00
Aleks-Daniel Jakimenko
4492ede096 "use strict;" in modules (some modules have problems) 2015-03-27 03:01:01 +02:00
Alex Schroeder
66972c4dc4 markup.pl: fix corner cases for markup pairs
Some support for corner cases was added, including tests. Now it should
be possible to write the following without the code triggering:

"foo*bar is not ** foo bar" -- this should no longer be bold.
2015-03-17 07:48:29 +01: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
b2b1c16247 markup.pl: link English documentation 2014-08-24 21:31:00 +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
6647d52e88 Handle markup singles before handling forced pairs. 2013-04-12 22:59:50 +02:00
Alex Schroeder
37c32783f3 Changed \x{ffff} to \x{fffd} in all regular expressions.
Using Perl 5.8.8 resulted in a crash when compiling regular expressions referring to \x{ffff}.
2012-07-19 06:01:30 -04:00
Alex Schroeder
67650e3dc8 More UTF-8 fixes
All the source files containing non-ASCII characters needed to have
utf8 added. This will be necessary for user config files as well! The
regular expressions identifying page names had to be changed.
UrlEncode translates the string back to bytes before encoding it.
Cached RSS files are saved with UTF-8 encoding and therefore need
their meta-data changed (using the XML::RSS module to do this
correctly didn't work for some of the test files). The CGI object's
parameters, keywords and info_path are decoded correctly. File access
uses the UTF-8 layer (reading, writing, appending, access to the log
of recent changes, running sub processes with grep and diff).

The mac compatibility extension will also disable the use of grep if
non-ASCII characters are searched for because of an unexplained
problem with grep.
2012-05-24 18:08:42 +02: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
52906a7e91 (%MarkupSingles): Added more arrows. 2009-11-07 19:32:35 +00:00
Alex Schroeder
b5d0f72445 (%MarkupSingles): The right arrow is followed
by a non-breaking space:
2009-11-07 19:30:17 +00:00
Alex Schroeder
11e09fe6b3 (MarkupRule): Fixed markup rules to get the
[[foo]]'s apostrophe correct.
2009-03-13 22:28:29 +00:00
Alex Schroeder
da6e61c5eb (%MarkupForcedPairs): Added that to options. 2009-02-13 10:26:51 +00:00
Alex Schroeder
02ed3a533a (MarkupInit): Sort strings by length. 2008-03-26 21:57:19 +00:00
Alex Schroeder
bfde03173f (%MarkupForcedPairs): Add newline after {{{ for preformatted block. 2006-08-31 09:11:58 +00:00
Alex Schroeder
d9fad13b56 (%MarkupForcedPairs): Use pre for {{{ ... }}}
instead of faking it with code. Define a hash telling us which
useful subset of HTML elements are block elements.
(MarkupTag): Close HTML environment and restart paragraph if a
block element.
(MarkupRule): Match trailing whitespace on a line if a block
element.
2006-08-18 23:57:36 +00:00
Alex Schroeder
8c273627af (MarkupRule): Test for space before the quote
before checking for punctuation after the quote.
2006-03-11 18:10:43 +00:00
Alex Schroeder
971dc6bb08 (MarkupRule): Handle quotes.
($MarkupQuotes): New.
($MarkupQuoteTable): New.
(MarkupRule): Use them.
2006-03-06 01:53:29 +00:00
Alex Schroeder
0f10fb11df Update copyright year. 2006-03-06 00:27:08 +00:00
Alex Schroeder
83f97b0627 (MarkupRule): Use numbered entities instead of utf-8 encoded characters.
($MarkupQuotes): delete again.
2006-03-06 00:26:50 +00:00
Alex Schroeder
cce28f01d8 (MarkupRule): Handle quotes.
($MarkupQuotes): New.
2006-03-06 00:14:22 +00:00
Alex Schroeder
2a2fa3c0ba (MarkupRule): Prevent forced markup from
spanning empty lines when start and end tag are the same.  This is
specially tricky when // is used on a file path, for example.
2005-10-14 21:12:55 +00:00
Alex Schroeder
7ef4527f14 (MarkupRule): Make sure empty elements are not created, eg ____
stays ____ and does not turn into an empty (and thus invisible)
element.
2005-10-09 11:35:50 +00:00
Alex Schroeder
48361aee37 (MarkupRule): Fix regexp for forced pairs,
because it used to crash if no matching end was found for
thousands of characters.
2005-10-09 11:26:46 +00:00
Alex Schroeder
a155c1664e (MarkupRule): Fix multiline problem. 2005-09-25 11:14:58 +00:00
Alex Schroeder
038f9c1a6a (MarkupInit): Simplified code by making it
less tight.
(MarkupForcedPairs): Removed.
2005-09-10 03:18:29 +00:00
Alex Schroeder
9db7d37100 (%MarkupForcedPairs): Changed definition for
triple braces.
(@markup_forced_pairs_re): Replaces $markup_forced_pairs_re as
internal variable.
(MarkupForcedPairs): New.
(MarkupInit): Use it to set @markup_forced_pairs_re.
2005-09-02 21:58:21 +00:00
Alex Schroeder
cf3baa4335 (MarkupForcedPairs): New.
(MarkupRule, MarkupInit): Handle new option.
(MarkupRule): Fix %MarkupLines handling.
2005-08-23 02:48:13 +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
ca9194fca4 Use @MyInitVariables. 2005-01-04 09:08:32 +00:00
Alex Schroeder
09955e11a9 (MarkupRule): More checks to prevent bugs when
one of the hashes is empty.
2004-12-26 01:44:41 +00:00
Alex Schroeder
a5bf57089d (MarkupRule): Remove stray call to warn. 2004-09-27 21:38:52 +00:00
Alex Schroeder
792fc44329 (%MarkupLines): New option.
(%MarkupSingles): Unquote HTML.
(NewMarkupInitVariables): Use %MarkupLines.
(MarkupTag): New, factored out of MarkupRule.
(MarkupRule): Use MarkupTag and support %MarkupLines.
2004-09-27 21:38:08 +00:00
Alex Schroeder
f3ccefd104 (%MarkupPairs): No longer use the u element.
Use em with a style attribute instead.
(MarkupRule): Handle arrays in %MarkupPairs.
2004-09-02 20:34:52 +00:00
Alex Schroeder
66719e4226 Rewrite to make it customizable. 2004-08-18 13:01:48 +00:00
Alex Schroeder
bfb3a4c2e2 Set %RuleOrder. 2004-07-14 14:51:23 +00:00
Alex Schroeder
369808f9ad (MarkupRule): Fix "to /usr/local/share/perl/!" example. 2004-06-26 21:25:40 +00:00
Alex Schroeder
0a88f9fd68 (MarkupRule): Fix ~/elisp/ and /usr/bin/ example. 2004-06-26 21:19:38 +00:00
Alex Schroeder
1a393caf45 (MarkupRule): Added zero-width look-ahead
assertion.
2004-06-26 20:58:05 +00:00
Alex Schroeder
53189e4cd4 A sequence of words may not start with a
number in order to prevent "6/22/2004" -> "6<i>22</i>2004" instead
of "6/22/2004".
2004-06-23 13:06:37 +00:00
Alex Schroeder
dfe9e23652 (MarkupRule): Use en dash and em dash, changed
patterns slightly.
2004-06-20 20:41:07 +00:00