Test was done on the wrong data structure: the title is almost the only element ending up in shouldBeInInfo, it is never inmustBeInInfo.
This commit is contained in:
Thibaut Cuvelier 2020-10-16 04:29:50 +02:00
parent 36c8e06cf1
commit 170866986c

View File

@ -922,7 +922,7 @@ void outputDocBookInfo(
// If there is no title, generate one (required for the document to be valid).
// This code is called for the main document, for table cells, etc., so be precise in this condition.
if (text.isMainText() && info.mustBeInInfo.empty()) {
if (text.isMainText() && info.shouldBeInInfo.empty()) {
xs << xml::StartTag("title");
xs << "Untitled Document";
xs << xml::EndTag("title");