Author: sdumitriu
Date: 2008-01-28 17:35:16 +0100 (Mon, 28 Jan 2008)
New Revision: 7108
Modified:
xwiki-platform/web/trunk/standard/src/main/webapp/templates/macros.vm
Log:
XWIKI-2042: Wiki markup in the footnotes break the HTML
Fixed.
Modified: xwiki-platform/web/trunk/standard/src/main/webapp/templates/macros.vm
===================================================================
--- xwiki-platform/web/trunk/standard/src/main/webapp/templates/macros.vm
2008-01-28 13:30:34 UTC (rev 7107)
+++ xwiki-platform/web/trunk/standard/src/main/webapp/templates/macros.vm
2008-01-28 16:35:16 UTC (rev 7108)
@@ -611,9 +611,10 @@
#set($footnote_group_id = 1)
#end
#set($discard = $page_footnotes.add($text))
+#set($processedText = $text.replaceAll('[*~<>_-]', ''))
#set($footnote_id = $page_footnotes.size())
<sup class="footnoteRef" id="footnoteref_${footnote_group_id}_${footnote_id}">
- <a href="#footnote_${footnote_group_id}_${footnote_id}"
title="$msg.get("core.footnotes.gotofootnote", [${footnote_id}]):
$text">\[$footnote_id\]</a>
+ <a href="#footnote_${footnote_group_id}_${footnote_id}"
title="$msg.get("core.footnotes.gotofootnote", [${footnote_id}]):
{pre}$processedText{/pre}">\[$footnote_id\]</a>
</sup>
#end
##
_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications