Login  Register

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?

According to http://www.methods.co.nz/asciidoc/chunked/ch10.html:

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>

I tried doing a verse paragraph style, with lines consisting of a space and plus sign per http://comments.gmane.org/gmane.text.formats.asciidoc/224:

[verse]
 +
 +

This is based on the docs here: http://www.methods.co.nz/asciidoc/chunked/ch15.html#X94

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.