diff options
author | Topi Reinio <topi.reinio@qt.io> | 2019-03-18 13:39:57 +0100 |
---|---|---|
committer | Topi Reinio <topi.reinio@qt.io> | 2019-05-31 15:24:34 +0200 |
commit | e42dd0a13ebf37f7402a4cf09a6fb62b8c740c76 (patch) | |
tree | 9e1368906334cef88abbf7d78df3168953c6f012 /src/qdoc/clangcodeparser.cpp | |
parent | 2ecbaa7c29de2350486c6e83375ba8c83fee6cda (diff) | |
download | qttools-e42dd0a13ebf37f7402a4cf09a6fb62b8c740c76.tar.gz |
qdoc: Avoid duplicating version strings in HTML <title> element
Commit 802aa37f introduced full version strings into the titles in
HTML header. However, for pages that already included a prefix
of the version information (e.g. 'Qt 5.13'), this meant that
the version appeared now twice ('Qt 5.13 5.13.0').
This commit checks for the presence of a version prefix in the
title and only appends the full version if one is not found or
does not match with the project version (which for Qt modules is
QT_VERSION).
Fixes: QTBUG-74301
Change-Id: Iceb3cf8f0e0181709e547a87cb6e92a6a13dcfef
Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
Diffstat (limited to 'src/qdoc/clangcodeparser.cpp')
0 files changed, 0 insertions, 0 deletions