[ 
https://issues.apache.org/jira/browse/DOXIA-764?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17905131#comment-17905131
 ] 

Michael Osipov commented on DOXIA-764:
--------------------------------------

{{<source>}} is a block element, has always been, never inline.

> XDoc source has a spurious new line at the beginning
> ----------------------------------------------------
>
>                 Key: DOXIA-764
>                 URL: https://issues.apache.org/jira/browse/DOXIA-764
>             Project: Maven Doxia
>          Issue Type: Bug
>          Components: Module - Xdoc
>    Affects Versions: 2.0.0
>            Reporter: Konrad Windszus
>            Priority: Major
>
> HTML rendered from the following XDoc snippet
> {code}
>  <source>
> sink.paragraph();
> sink.text( &quot;my text&quot; );
> sink.paragraph_(); </source>
> {code}
> has a spurious new line at the beginning when rendered as HTML:
> {code}
> <pre class="prettyprint linenums"><code>
> sink.paragraph();
> sink.text( &quot;my text&quot; );
> sink.paragraph_(); </code></pre>
> {code}
> Probably a regression of DOXIA-731.
> Previously this was converted to 
> {code}
> <div class="source"><pre class="prettyprint linenums">
> sink.paragraph();
> sink.text( &quot;my text&quot; );
> sink.paragraph_(); </pre></div>
> {code}
> where the first linebreak inside {{pre}} was ignored as it is a block element.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to