erebor/asciidoctor — pull request #38 by mojavelinux (2012-12-26 02:38:21+00:00)
Title: Fix issue #36, preserve endlines in pre blocks

This fix is an important one. By removing blank lines in the rendered output, Asciidoctor was inadvertently taking away semantic blank lines in literal blocks.

Fortunately, this problem has a nice solution. Simply replace blank lines in preformatted blocks with the line feed entity, then (optionally) restore the visual endlines (instead of leaving the entity).

I still haven't pinned down exactly what our policy will be on handling blank lines and how the user can control the behavior (which I'll raise in a separate issue), but for sure this fix is necessary to make Asciidoctor work properly now.