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.
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.
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.
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.
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.
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.
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.
(%MarkupSingles): Unquote HTML.
(NewMarkupInitVariables): Use %MarkupLines.
(MarkupTag): New, factored out of MarkupRule.
(MarkupRule): Use MarkupTag and support %MarkupLines.