diff options
Diffstat (limited to 'src/tools/qdoc/quoter.cpp')
-rw-r--r-- | src/tools/qdoc/quoter.cpp | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/src/tools/qdoc/quoter.cpp b/src/tools/qdoc/quoter.cpp index d8a4df33f3..25cf27f731 100644 --- a/src/tools/qdoc/quoter.cpp +++ b/src/tools/qdoc/quoter.cpp @@ -39,6 +39,8 @@ QT_BEGIN_NAMESPACE +QHash<QString,QString> Quoter::commentHash; + static void replaceMultipleNewlines(QString &s) { const int n = s.size(); @@ -120,14 +122,16 @@ Quoter::Quoter() * .html, .qrc, .ui, .xq, .xml .dita files: <!-- [<id>] --> */ - commentHash["pro"] = "#!"; - commentHash["py"] = "#!"; - commentHash["html"] = "<!--"; - commentHash["qrc"] = "<!--"; - commentHash["ui"] = "<!--"; - commentHash["xml"] = "<!--"; - commentHash["dita"] = "<!--"; - commentHash["xq"] = "<!--"; + if (!commentHash.size()) { + commentHash["pro"] = "#!"; + commentHash["py"] = "#!"; + commentHash["html"] = "<!--"; + commentHash["qrc"] = "<!--"; + commentHash["ui"] = "<!--"; + commentHash["xml"] = "<!--"; + commentHash["dita"] = "<!--"; + commentHash["xq"] = "<!--"; + } } void Quoter::reset() |