Konrad Windszus opened DOXIA-767 and commented
The javadoc of https://maven.apache.org/doxia/doxia/doxia-sink-api/apidocs/org/apache/maven/doxia/sink/Sink.html should be clarified with regards to trimming whitespace behaviour for block/inline elements. Not necessarily each block Sink element is a block element in the desired output format (e.g. XHTML). Most prominently this is the case with
Sink.verbatim(Decoration:source) which is a block element in Sink API but opens an inline element (<pre><code>) in XHTML.
See https://developer.mozilla.org/en-US/docs/Web/API/Document_Object_Model/Whitespace.
Issue Links:
- DOXIA-764 XDoc source has a spurious new line at the beginning