projects
/
bse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db74bbe
)
allow poplink to work over blocks
author
Tony Cook
<tony@develop-help.com>
Thu, 24 Oct 2013 03:10:49 +0000
(14:10 +1100)
committer
Tony Cook
<tony@develop-help.com>
Sun, 3 Nov 2013 23:20:23 +0000
(10:20 +1100)
site/cgi-bin/modules/DevHelp/Formatter.pm
patch
|
blob
|
blame
|
history
diff --git
a/site/cgi-bin/modules/DevHelp/Formatter.pm
b/site/cgi-bin/modules/DevHelp/Formatter.pm
index 84bad91aab527d6913779b2ccca9c2c510cc33b7..cde41d7658a5687057ddcd32fdb73d7bf8e020d4 100644
(file)
--- a/
site/cgi-bin/modules/DevHelp/Formatter.pm
+++ b/
site/cgi-bin/modules/DevHelp/Formatter.pm
@@
-234,6
+234,9
@@
sub replace_char {
$$rpart =~ s#(strong|em|samp|code|var|sub|sup|kbd|q|b|i|tt|span|small|large|mark)\[(?:\r?\n)?([^\]\[]+?)(?:\r?\n)?\]#
$self->_fix_spanned("<$1>", "</$1>", $2)#egi
and return 1;
+ $$rpart =~ s#poplink\[([^|\]\[]+)\|([^\]\[]*\n\s*\n[^\]\[]*)\]#
+ "\n\n" . NO_P . $self->link($1, $self->_blockify($2), "poplink", qq/ target="_blank"/) . NO_CP . "\n\n" #eig
+ and return 1;
$$rpart =~ s#poplink\[([^|\]\[]+)\|([^\]\[]+)\]#
$self->link($1, $2, "poplink", qq/ target="_blank"/)#eig
and return 1;