From c1ccf74a046ba8fa731e99fcf507c26fe8e8cc83 Mon Sep 17 00:00:00 2001 From: Topi Reinio Date: Fri, 8 Jan 2021 14:43:02 +0100 Subject: qdoc: Ignore empty example meta tags MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Incorrectly formatted parameter for the \meta tag command may result in empty tags, and cause an assert later on. Change-Id: I504e038f119833615976ba44549934ccc70aea31 Reviewed-by: Paul Wicking (cherry picked from commit c8500ae622f47dee84cb1ee2dbf167921de3e5c1) Reviewed-by: Topi Reiniƶ --- src/qdoc/htmlgenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qdoc/htmlgenerator.cpp b/src/qdoc/htmlgenerator.cpp index 4fbc04c92..e91827d3c 100644 --- a/src/qdoc/htmlgenerator.cpp +++ b/src/qdoc/htmlgenerator.cpp @@ -3985,7 +3985,7 @@ void HtmlGenerator::generateManifestFile(const QString &manifest, const QString // Include tags added via \meta {tag} {tag1[,tag2,...]} // within \example topic for (const auto &tag : en->doc().metaTagMap().values("tag")) { - const auto &tagList = tag.toLower().split(QLatin1Char(',')); + const auto &tagList = tag.toLower().split(QLatin1Char(','), Qt::SkipEmptyParts); tags += QSet(tagList.cbegin(), tagList.cend()); } -- cgit v1.2.1