Getting blank lines in AsciiDoc
Posted by
paulrayner on
Mar 15, 2013; 5:15pm
URL: https://discuss.asciidoctor.org/Getting-blank-lines-in-AsciiDoc-tp47.html
How do I do blank lines in AsciiDoc so that they will come out correctly in Asciidoctor HTML rendering?
A plus character preceded by at least one space character at the end of a non-blank line forces a line break. It generates a line break (br
) tag for HTML outputs and a custom XML asciidoc-br
processing instruction for DocBook outputs. The asciidoc-br
processing instruction is handled bya2x(1)
.
With AsciiDoc of:
+
I get:
<div class="literalblock">
<div class="content monospaced">
<pre>+</pre>
</div>
</div>
But I get HTML that looks like the following from Asciidoctor:
<div class="literalblock">
<div class="content monospaced">
<pre>+
+</pre>
</div>
</div>
Am I missing something here?
Thanks,
Paul.