diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-04-02 16:40:53 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-04-02 17:28:49 +0200 |
commit | 2f7eb415bd3edbd12c2b0765675c09ca64e1737a (patch) | |
tree | 5a7ddce50810f07d0d92ebf816975e38bc532217 | |
parent | feb211042f6da3879601aed6fd0cd8b1ee613124 (diff) |
Documentation: Fix broken module TOCs
Revert a part of e72af74d4cd458a10a707ad6aa248fbcb661de0a
that removed a part removing the file extension.
Change-Id: Iafc0c56d596a5ffb40367c1a2c48da114b07d2ae
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
-rw-r--r-- | sources/shiboken6/generator/qtdoc/qtdocgenerator.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sources/shiboken6/generator/qtdoc/qtdocgenerator.cpp b/sources/shiboken6/generator/qtdoc/qtdocgenerator.cpp index 676bab5eb..c1c8b5dd8 100644 --- a/sources/shiboken6/generator/qtdoc/qtdocgenerator.cpp +++ b/sources/shiboken6/generator/qtdoc/qtdocgenerator.cpp @@ -895,8 +895,13 @@ static void writeFancyToc(TextStream& s, const QStringList& items) { using TocMap = QMap<QChar, QStringList>; TocMap tocMap; - for (const QString &item : items) + + for (QString item : items) { + if (item.isEmpty()) + continue; + item.chop(4); // Remove the .rst extension tocMap[sortKey(item)] << item; + } static const qsizetype numColumns = 4; |