asciidoctor / docbookrx

(An early version of) a DocBook to AsciiDoc converter written in Ruby.
MIT License
22 stars 49 forks source link

Fixing nested programlisting in para in listitem #42

Closed mrietveld closed 8 years ago

mrietveld commented 8 years ago

This PR fixes #41 (and includes a test).

If there are things I should change, please let me know!

The spacing in the test (the converted Asciidoc itemized list) is not ideal, but what is actually shown (when asciidoc is processed) matches what would be shown by the docbook.

mrietveld commented 8 years ago

Merged: https://github.com/asciidoctor/docbookrx/commit/45a9664d66979795b16d58f7bb21bc9559206fef

mojavelinux commented 8 years ago

The spacing in the test (the converted Asciidoc itemized list) is not ideal

As much as possible, I'd like to try to eliminate unnecessary whitespace. AsciiDoc generally skips blank lines, but we want to make the best AsciiDoc we can make. The test suite is a good way to enforce that we stay within those boundaries.