diff options
author | David Boddie <david.boddie@nokia.com> | 2010-12-09 18:38:01 (GMT) |
---|---|---|
committer | David Boddie <david.boddie@nokia.com> | 2010-12-09 18:38:01 (GMT) |
commit | 77f069df4dcfd40a3d009f40e074ce1a5ac132c1 (patch) | |
tree | 9b35c83e38fb4ad502ddced39a51c0321424df7f /tools/qdoc3 | |
parent | 32292ebabf620200708d40fa8bfa43fc6562d716 (diff) | |
download | Qt-77f069df4dcfd40a3d009f40e074ce1a5ac132c1.zip Qt-77f069df4dcfd40a3d009f40e074ce1a5ac132c1.tar.gz Qt-77f069df4dcfd40a3d009f40e074ce1a5ac132c1.tar.bz2 |
Added hack to remove markup for opened comments at the end of snippets.
Diffstat (limited to 'tools/qdoc3')
-rw-r--r-- | tools/qdoc3/quoter.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/qdoc3/quoter.cpp b/tools/qdoc3/quoter.cpp index 6dc7894..84c6fb1 100644 --- a/tools/qdoc3/quoter.cpp +++ b/tools/qdoc3/quoter.cpp @@ -235,10 +235,14 @@ QString Quoter::quoteSnippet(const Location &docLocation, const QString &identif QString lastLine = getLine(); int dIndex = lastLine.indexOf(delimiter); if (dIndex > 0) { + // The delimiter might be preceded on the line by other + // delimeters, so look for the first comment on the line. QString leading = lastLine.left(dIndex); dIndex = leading.indexOf(comment); if (dIndex != -1) leading = leading.left(dIndex); + if (leading.endsWith(QLatin1String("<@comment>"))) + leading.chop(10); if (!leading.trimmed().isEmpty()) t += leading; } |