[ https://jira.codehaus.org/browse/DOXIA-405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=282564#comment-282564 ]
Herve Boutemy edited comment on DOXIA-405 at 11/1/11 4:28 PM: -------------------------------------------------------------- tried to implement it. The feature is easy to do: {noformat} Index: src/main/java/org/apache/maven/doxia/sink/AbstractXmlSink.java =================================================================== --- src/main/java/org/apache/maven/doxia/sink/AbstractXmlSink.java (revision 1196075) +++ src/main/java/org/apache/maven/doxia/sink/AbstractXmlSink.java (working copy) @@ -107,6 +107,12 @@ } StringBuilder sb = new StringBuilder(); + + if ( t.isBlock() ) + { + sb.append( EOL ); + } + sb.append( LESS_THAN ); if ( nameSpace != null ) {noformat} There are quite a few sink test methods to fix, add EOL ad trimming some results: easy too But there is a hard part: identity tests are severely affected, since the newline adds some text before blocks I'm stuck... was (Author: hboutemy): tried to implement it. The feature is easy to do: {noformat} Index: src/main/java/org/apache/maven/doxia/sink/AbstractXmlSink.java =================================================================== --- src/main/java/org/apache/maven/doxia/sink/AbstractXmlSink.java (revision 1196075) +++ src/main/java/org/apache/maven/doxia/sink/AbstractXmlSink.java (working copy) @@ -107,6 +107,12 @@ } StringBuilder sb = new StringBuilder(); + + if ( t.isBlock() ) + { + sb.append( EOL ); + } + sb.append( LESS_THAN ); if ( nameSpace != null ) {noformat} > The generated xhtml document has the entire content on a single line > -------------------------------------------------------------------- > > Key: DOXIA-405 > URL: https://jira.codehaus.org/browse/DOXIA-405 > Project: Maven Doxia > Issue Type: Improvement > Components: Module - Xhtml > Affects Versions: 1.1.3 > Environment: Maven Site Plugin 2.1.1 > Windows XP Pro > Reporter: Dennis Lundberg > > If you view the source for http://maven.apache.org/plugins/index.html, you > will see that the entire content is on line 207 and is 35396 columns wide. > Trying to debug such a page is near impossible. > For very large documents is isn't even possible for some browsers to show the > source with that many columns. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira