You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2020/02/13 20:47:15 UTC

[maven-doxia] branch master updated: [DOXIA-571] fixed stupid typo: class on div instead of pre

This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-doxia.git


The following commit(s) were added to refs/heads/master by this push:
     new 99f5450  [DOXIA-571] fixed stupid typo: class on div instead of pre
99f5450 is described below

commit 99f54508109723995c8587a1b574e0a9aa56ce09
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Thu Feb 13 21:47:10 2020 +0100

    [DOXIA-571] fixed stupid typo: class on div instead of pre
---
 .../maven/doxia/module/markdown/FlexmarkDoxiaNodeRenderer.java    | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/doxia-modules/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/FlexmarkDoxiaNodeRenderer.java b/doxia-modules/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/FlexmarkDoxiaNodeRenderer.java
index a8a91f6..dadf24b 100644
--- a/doxia-modules/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/FlexmarkDoxiaNodeRenderer.java
+++ b/doxia-modules/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/FlexmarkDoxiaNodeRenderer.java
@@ -70,8 +70,8 @@ class FlexmarkDoxiaNodeRenderer implements NodeRenderer
     private void render( IndentedCodeBlock node, NodeRendererContext context, HtmlWriter html )
     {
         html.line();
-        html.attr( "class", "source" ).tag( "div" );
-        html.srcPosWithEOL( node.getChars() ).withAttr().tag( "pre" ).openPre();
+        html.attr( "class", "source" ).withAttr().tag( "div" );
+        html.srcPosWithEOL( node.getChars() ).tag( "pre" ).openPre();
 
         String noLanguageClass = context.getHtmlOptions().noLanguageClass.trim();
         if ( !noLanguageClass.isEmpty() )
@@ -97,8 +97,8 @@ class FlexmarkDoxiaNodeRenderer implements NodeRenderer
     private void render( FencedCodeBlock node, NodeRendererContext context, HtmlWriter html )
     {
         html.line();
-        html.attr( "class", "source" ).tag( "div" );
-        html.srcPosWithTrailingEOL( node.getChars() ).withAttr().tag( "pre" ).openPre();
+        html.attr( "class", "source" ).withAttr().tag( "div" );
+        html.srcPosWithTrailingEOL( node.getChars() ).tag( "pre" ).openPre();
 
         //BasedSequence info = node.getInfo();
         //if (info.isNotNull() && !info.isBlank()) {