kwin commented on code in PR #238:
URL: https://github.com/apache/maven-doxia/pull/238#discussion_r1807312324


##########
doxia-modules/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownSink.java:
##########
@@ -859,6 +873,9 @@ public void nonBreakingSpace() {
 
     @Override
     public void text(String text, SinkEventAttributes attributes) {
+        if (text.equals("\n")) {

Review Comment:
   It turned out that the HTML parser often emits `text("\n")`without any 
semantical meaning. It becomes semantical if prefixing that with spaces, 
though. Therefore added a workaround to not prefix empty line breaks.



-- 
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-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to