forked from github/kensanata.oddmuse
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.
36 lines
1.2 KiB
Perl
36 lines
1.2 KiB
Perl
# Copyright (C) 2008 Weakish Jiang <weakish@gmail.com>
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License version 2 as
|
|
# published by the Free Software Foundation.
|
|
#
|
|
# You can get a copy of GPL version 2 at
|
|
# http://www.gnu.org/licenses/gpl-2.0.html
|
|
#
|
|
# For user doc, see:
|
|
# http://www.oddmuse.org/cgi-bin/oddmuse/Email_Quote_Extension
|
|
|
|
$ModulesDescription .= '<p><a href="http://git.savannah.gnu.org/cgit/oddmuse.git/tree/modules/emailquote.pl">emailquote.pl</a>, see <a href="http://www.oddmuse.org/cgi-bin/oddmuse/Email_Quote_Extension">Email Quote Extension</a></p>';
|
|
|
|
push(@MyRules, \&EmailQuoteRule);
|
|
|
|
sub EmailQuoteRule
|
|
{
|
|
# > on a line of its own should work
|
|
if ($bol && m/\G(\s*\n)*((\>))+\n/cog) {
|
|
return $q->p();
|
|
}
|
|
# > hi, you mentioned that:
|
|
# >> I don't like Oddmuse.
|
|
# > in last letter.
|
|
elsif ($bol && m/\G(\s*\n)*((\>)+)[ \t]/cog
|
|
or InElement('dd') && m/\G(\s*\n)+((\>)+)[ \t]/cog) {
|
|
$leng = length($2) / 4;
|
|
return CloseHtmlEnvironmentUntil('dd') . OpenHtmlEnvironment('dl',$leng, 'quote')
|
|
. $q->dt() . AddHtmlEnvironment('dd');
|
|
}
|
|
return undef;
|
|
}
|
|
|
|
|