diff --git a/resources/asciidoctor/lib/docbook_compat/convert_admonition.rb b/resources/asciidoctor/lib/docbook_compat/convert_admonition.rb index 188bf75c5646..7b4fb4a6ed55 100644 --- a/resources/asciidoctor/lib/docbook_compat/convert_admonition.rb +++ b/resources/asciidoctor/lib/docbook_compat/convert_admonition.rb @@ -20,10 +20,10 @@ def convert_admonition_title_id(node) return node.id ? %() : nil unless node.title [ - '
', node.title, node.id ? %() : nil, - '', + '
', ].compact.join end diff --git a/resources/asciidoctor/spec/change_admonition_spec.rb b/resources/asciidoctor/spec/change_admonition_spec.rb index 6d06b0930cc6..db13a31db1cd 100644 --- a/resources/asciidoctor/spec/change_admonition_spec.rb +++ b/resources/asciidoctor/spec/change_admonition_spec.rb @@ -35,7 +35,7 @@ def expect_block_admonition(body) end it "renders with Elastic's custom template" do expect_block_admonition <<~HTML.strip -#{message} in 7.0.0-beta1.
words
HTML end @@ -58,7 +58,7 @@ def expect_block_admonition(body) end it "renders with Elastic's custom template" do expect_block_admonition <<~HTML.strip -#{message} in 7.0.0-beta1.
Like 27
HTML end diff --git a/resources/asciidoctor/spec/docbook_compat_spec.rb b/resources/asciidoctor/spec/docbook_compat_spec.rb index 0fb4f34222eb..2790fced2f6a 100644 --- a/resources/asciidoctor/spec/docbook_compat_spec.rb +++ b/resources/asciidoctor/spec/docbook_compat_spec.rb @@ -1915,7 +1915,7 @@ def expect_block_admonition(body)Title
words