You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by bo...@apache.org on 2013/09/14 23:11:55 UTC

svn commit: r1523329 - /tapestry/tapestry-site/trunk/template/template.vm

Author: bobharner
Date: Sat Sep 14 21:11:54 2013
New Revision: 1523329

URL: http://svn.apache.org/r1523329
Log:
An attempt to crudely fix the rendering of Confluence {code} macros back to the old HTML format (until we can cleanly incorporate Dan Kulp's fixes into our copy of SiteExporter)

Modified:
    tapestry/tapestry-site/trunk/template/template.vm

Modified: tapestry/tapestry-site/trunk/template/template.vm
URL: http://svn.apache.org/viewvc/tapestry/tapestry-site/trunk/template/template.vm?rev=1523329&r1=1523328&r2=1523329&view=diff
==============================================================================
--- tapestry/tapestry-site/trunk/template/template.vm (original)
+++ tapestry/tapestry-site/trunk/template/template.vm Sat Sep 14 21:11:54 2013
@@ -53,7 +53,7 @@ $content.replaceAll("Page Title", $page.
 
 <div id="content">
 #set($body = $page.getContent())
-$body.replaceAll('rel="nofollow"', "")
+$body.replaceAll('rel="nofollow"', "").replaceAll('<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[', '<pre class="code-java">').replaceAll(']]></script>', '/pre>')
 </div>
 
 <div class="clearer"></div>