You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "michael-o (via GitHub)" <gi...@apache.org> on 2024/05/01 08:22:20 UTC
Re: [PR] [MSKINS-245] Add code highlighting class to every combination [maven-fluido-skin]
michael-o commented on code in PR #58:
URL: https://github.com/apache/maven-fluido-skin/pull/58#discussion_r1586012833
##########
src/main/resources/META-INF/maven/site.vm:
##########
@@ -239,7 +239,7 @@
#* *##set( $sourceStyle = "prettyprint" )
#* *##end
##
-#* *#$bodyContent.replaceAll( '<div class="verbatim source">(\r?\n)?<pre>', '<div class="verbatim source"><pre class="' + $sourceStyle + '">' ).replaceAll( 'class="bodyTable"', 'class="table table-striped"' ).replaceAll( 'class="bodyTable bodyTableBorder"', 'class="table table-bordered table-striped"' )
+#* *#$bodyContent.replaceAll( '<pre><code>', '<pre class="' + $sourceStyle + '"><code>' ).replaceAll( 'class="bodyTable"', 'class="table table-striped"' ).replaceAll( 'class="bodyTable bodyTableBorder"', 'class="table table-bordered table-striped"' )
Review Comment:
Since we don't need regex anymore, we can resort to just `replace()` here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org