oreillymedia / docbook2asciidoc

XSL for transforming DocBook to AsciiDoc
MIT License
61 stars 33 forks source link

Special handling for code listings with dashes #3

Closed sandersk closed 12 years ago

sandersk commented 12 years ago

Due to issues cited here:

http://www.methods.co.nz/asciidoc/faq.html#_how_can_i_include_lines_of_dashes_inside_a_listing_block

If a code listing contains more than 3 dashes in a row, it needs to be converted as a LiteralBlock styled as a listing block. Either that, or a DocBook passthrough. Example from Cassandra:TDG:


[default@MyKeyspace] describe keyspace MyKeyspace Keyspace: MyKeyspace

Column Family Name: User Column Family Type: Standard Column Sorted By: org.apache.cassandra.db.marshal.BytesType

flush period: null minutes

[default@MyKeyspace]

sandersk commented 12 years ago

Fixed.