diff options
author | Topi Reinio <topi.reinio@qt.io> | 2021-01-08 14:43:02 +0100 |
---|---|---|
committer | Topi Reinio <topi.reinio@qt.io> | 2021-01-08 14:44:27 +0100 |
commit | c1ccf74a046ba8fa731e99fcf507c26fe8e8cc83 (patch) | |
tree | a5e5202dc05269573527c4c24f95b2d43fdc0b9b | |
parent | ab7537e384041bce22aac28821b48fe5d6c867f1 (diff) | |
download | qttools-c1ccf74a046ba8fa731e99fcf507c26fe8e8cc83.tar.gz |
qdoc: Ignore empty example meta tags
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 <paul.wicking@qt.io>
(cherry picked from commit c8500ae622f47dee84cb1ee2dbf167921de3e5c1)
Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
-rw-r--r-- | src/qdoc/htmlgenerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<QString>(tagList.cbegin(), tagList.cend()); } |