You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2024/06/07 20:59:39 UTC
(maven-fluido-skin) 01/01: [MSKINS-248] If $bodyContent is empty HTML code is distorted
This is an automated email from the ASF dual-hosted git repository.
michaelo pushed a commit to branch MSKINS-248
in repository https://gitbox.apache.org/repos/asf/maven-fluido-skin.git
commit 21321b898c67a8be986b9782c76f4feaa737504d
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Fri Jun 7 22:59:03 2024 +0200
[MSKINS-248] If $bodyContent is empty HTML code is distorted
This closes #61
---
src/main/resources/META-INF/maven/site.vm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/resources/META-INF/maven/site.vm b/src/main/resources/META-INF/maven/site.vm
index 26bb876..8991c46 100644
--- a/src/main/resources/META-INF/maven/site.vm
+++ b/src/main/resources/META-INF/maven/site.vm
@@ -239,7 +239,7 @@
#* *##set( $sourceStyle = "prettyprint" )
#* *##end
##
-#* *#$bodyContent.replace( '<pre><code>', '<pre class="' + $sourceStyle + '"><code>' ).replace( 'class="bodyTable"', 'class="table table-striped"' ).replace( 'class="bodyTable bodyTableBorder"', 'class="table table-bordered table-striped"' )
+#* *##if ( $bodyContent )$bodyContent.replace( '<pre><code>', '<pre class="' + $sourceStyle + '"><code>' ).replace( 'class="bodyTable"', 'class="table table-striped"' ).replace( 'class="bodyTable bodyTableBorder"', 'class="table table-bordered table-striped"' )#end
</main>
#* *##if( $sideBarEnabled )
</div>