maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1726934 - /maven/doxia/doxia/trunk/doxia-modules/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownToDoxiaHtmlSerializer.java
Date Wed, 27 Jan 2016 02:54:48 GMT
Author: hboutemy
Date: Wed Jan 27 02:54:48 2016
New Revision: 1726934

URL: http://svn.apache.org/viewvc?rev=1726934&view=rev
Log:
[DOXIA-521] improved comment to define why Pegdown html output has to be tweaked to match
Doxia Xhtml Sink convention

Modified:
    maven/doxia/doxia/trunk/doxia-modules/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownToDoxiaHtmlSerializer.java

Modified: maven/doxia/doxia/trunk/doxia-modules/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownToDoxiaHtmlSerializer.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-modules/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownToDoxiaHtmlSerializer.java?rev=1726934&r1=1726933&r2=1726934&view=diff
==============================================================================
--- maven/doxia/doxia/trunk/doxia-modules/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownToDoxiaHtmlSerializer.java
(original)
+++ maven/doxia/doxia/trunk/doxia-modules/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownToDoxiaHtmlSerializer.java
Wed Jan 27 02:54:48 2016
@@ -43,7 +43,9 @@ public class MarkdownToDoxiaHtmlSerializ
     @Override
     public void visit( VerbatimNode node )
     {
-        printer.println().print( "<div class=\"source\"><pre>" ); // better than
"<pre><code>" from Pegdown
+        // Pegdown renders verbatim as "<pre><code>", but Doxia base Xhtml Sink
renders as "<div class=..><pre>"
+        // see XhtmlBaseParser.verbatim() implementation
+        printer.println().print( "<div class=\"source\"><pre>" );
         String text = node.getText();
         // print HTML breaks for all initial newlines
         while ( text.charAt( 0 ) == '\n' )



Mime
View raw message