summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2024-02-20 14:05:03 -0700
committerDan Allen <dan.j.allen@gmail.com>2024-02-20 14:05:48 -0700
commitb5f472c7b8c1eb62baa22a3a017b81cbd1dff034 (patch)
tree0edd1506d3c65e65d4196dea556ea30e89762fd1 /lib
parent7a096fd2bf5c0a5d3264fe03350fb97f87478180 (diff)
change title to doctitle in warning message about use of abstract to make subject more clear
Diffstat (limited to 'lib')
-rw-r--r--lib/asciidoctor/converter/docbook5.rb2
-rw-r--r--lib/asciidoctor/converter/html5.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/asciidoctor/converter/docbook5.rb b/lib/asciidoctor/converter/docbook5.rb
index da3a0bd4..8093896d 100644
--- a/lib/asciidoctor/converter/docbook5.rb
+++ b/lib/asciidoctor/converter/docbook5.rb
@@ -306,7 +306,7 @@ class Converter::DocBook5Converter < Converter::Base
case node.style
when 'abstract'
if (parent = node.parent) == node.document && node.document.doctype == 'book'
- logger.warn 'abstract block cannot be used in a document without a title when doctype is book. Excluding block content.'
+ logger.warn 'abstract block cannot be used in a document without a doctitle when doctype is book. Excluding block content.'
''
else
result = %(<abstract>
diff --git a/lib/asciidoctor/converter/html5.rb b/lib/asciidoctor/converter/html5.rb
index 9b9febe4..09d395bc 100644
--- a/lib/asciidoctor/converter/html5.rb
+++ b/lib/asciidoctor/converter/html5.rb
@@ -751,7 +751,7 @@ Your browser does not support the audio tag.
def convert_open node
if (style = node.style) == 'abstract'
if node.parent == node.document && node.document.doctype == 'book'
- logger.warn 'abstract block cannot be used in a document without a title when doctype is book. Excluding block content.'
+ logger.warn 'abstract block cannot be used in a document without a doctitle when doctype is book. Excluding block content.'
''
else
id_attr = node.id ? %( id="#{node.id}") : ''