From cb96ff71770ca2a45ea2ca768fef04082e9b4989 Mon Sep 17 00:00:00 2001 From: Alex Schroeder Date: Thu, 3 Jan 2008 00:59:56 +0000 Subject: [PATCH] *** empty log message *** --- ChangeLog | 5 +++++ modules/numbered-list.pl | 9 +++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index cf8ea486..05479e06 100644 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,11 @@ * modules/csv.pl (CsvRule): Add csv class. +2007-12-15 Alex Schroeder + + * wiki.pl (GetFooterLinks, GetCommentForm): Use the parameter $id + instead of the global $OpenPageName. + 2007-12-14 Alex Schroeder * wiki.pl (GetHtmlHeader, GetRobots, GetFeeds, InitVariables): diff --git a/modules/numbered-list.pl b/modules/numbered-list.pl index 894bb6d6..70da7380 100644 --- a/modules/numbered-list.pl +++ b/modules/numbered-list.pl @@ -13,14 +13,15 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -$ModulesDescription .= '

$Id: numbered-list.pl,v 1.1 2007/12/26 17:22:46 as Exp $

'; +$ModulesDescription .= '

$Id: numbered-list.pl,v 1.2 2008/01/03 01:01:00 as Exp $

'; push(@MyRules, \&NumberedListRule); sub NumberedListRule { - # numbered lists using # copied from usemod.pl - if ($bol && m/\G(\s*\n)*(\#+)[ \t]/cog - or InElement('li') && m/\G(\s*\n)+(\#+)[ \t]/cog) { + # numbered lists using # copied from usemod.pl but allow leading + # whitespace + if ($bol && m/\G(\s*\n)*\s*(\#+)[ \t]/cog + or InElement('li') && m/\G(\s*\n)+\s*(\#+)[ \t]/cog) { return CloseHtmlEnvironmentUntil('li') . OpenHtmlEnvironment('ol',length($2)) . AddHtmlEnvironment('li');