maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From micha...@apache.org
Subject svn commit: r1647915 - in /maven/skins: branches/maven-fluido-skin-1.3.x/src/main/resources/META-INF/maven/site.vm trunk/maven-fluido-skin/src/main/resources/META-INF/maven/site.vm
Date Thu, 25 Dec 2014 18:37:30 GMT
Author: michaelo
Date: Thu Dec 25 18:37:30 2014
New Revision: 1647915

URL: http://svn.apache.org/r1647915
Log:
[MSKINS-86] class prettyprint not added to pre tags

Previous regex did not work

Modified:
    maven/skins/branches/maven-fluido-skin-1.3.x/src/main/resources/META-INF/maven/site.vm
    maven/skins/trunk/maven-fluido-skin/src/main/resources/META-INF/maven/site.vm

Modified: maven/skins/branches/maven-fluido-skin-1.3.x/src/main/resources/META-INF/maven/site.vm
URL: http://svn.apache.org/viewvc/maven/skins/branches/maven-fluido-skin-1.3.x/src/main/resources/META-INF/maven/site.vm?rev=1647915&r1=1647914&r2=1647915&view=diff
==============================================================================
--- maven/skins/branches/maven-fluido-skin-1.3.x/src/main/resources/META-INF/maven/site.vm
(original)
+++ maven/skins/branches/maven-fluido-skin-1.3.x/src/main/resources/META-INF/maven/site.vm
Thu Dec 25 18:37:30 2014
@@ -1143,7 +1143,7 @@
               #set ( $sourceStyle = "prettyprint" )
             #end
 
-            $bodyContent.replaceAll( "<div class=\"source\">\\s*<pre>", "<div
class=\"source\"><pre class=\"$sourceStyle\">" ).replaceAll( "class=\"bodyTable\"",
"class=\"table table-striped\"" )
+            $bodyContent.replaceAll( "<div class=\"source\">(\r?\n)?<pre>", "<div
class=\"source\"><pre class=\"$sourceStyle\">" ).replaceAll( "class=\"bodyTable\"",
"class=\"table table-striped\"" )
           #end
         </div>
       #if ( $sideBarEnabled )

Modified: maven/skins/trunk/maven-fluido-skin/src/main/resources/META-INF/maven/site.vm
URL: http://svn.apache.org/viewvc/maven/skins/trunk/maven-fluido-skin/src/main/resources/META-INF/maven/site.vm?rev=1647915&r1=1647914&r2=1647915&view=diff
==============================================================================
--- maven/skins/trunk/maven-fluido-skin/src/main/resources/META-INF/maven/site.vm (original)
+++ maven/skins/trunk/maven-fluido-skin/src/main/resources/META-INF/maven/site.vm Thu Dec
25 18:37:30 2014
@@ -1159,7 +1159,7 @@
               #set ( $sourceStyle = "prettyprint" )
             #end
 
-            $bodyContent.replaceAll( "<div class=\"source\">\\s*<pre>", "<div
class=\"source\"><pre class=\"$sourceStyle\">" ).replaceAll( "class=\"bodyTable\"",
"class=\"table table-striped\"" )
+            $bodyContent.replaceAll( "<div class=\"source\">(\r?\n)?<pre>", "<div
class=\"source\"><pre class=\"$sourceStyle\">" ).replaceAll( "class=\"bodyTable\"",
"class=\"table table-striped\"" )
           #end
         </div>
       #if ( $sideBarEnabled )



Mime
View raw message