diff options
| -rw-r--r-- | lib/asciidoctor/converter/docbook45.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/asciidoctor/converter/docbook45.rb b/lib/asciidoctor/converter/docbook45.rb index 412d3b27..65b8e996 100644 --- a/lib/asciidoctor/converter/docbook45.rb +++ b/lib/asciidoctor/converter/docbook45.rb @@ -4,6 +4,17 @@ module Asciidoctor # A built-in {Converter} implementation that generates DocBook 4.5 output # consistent with the docbook45 backend from AsciiDoc Python. class Converter::DocBook45Converter < Converter::DocBook5Converter + def admonition node + # address a bug in the DocBook 4.5 DTD + if node.parent.context == :example + %(<para> +#{super} +</para>) + else + super + end + end + def olist node result = [] num_attribute = node.style ? %( numeration="#{node.style}") : nil |
