diff options
author | Jun Tajima <56220423+tjmprm77@users.noreply.github.com> | 2020-03-21 16:07:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-21 16:07:43 (GMT) |
commit | 7c3b332d233965544467f5e84e249e5985587cb2 (patch) | |
tree | 6210564a46487d164e92099d497d080e790e3a69 | |
parent | f788f684f055c5470d624f3c27c6e236f18c2c31 (diff) | |
download | Doxygen-7c3b332d233965544467f5e84e249e5985587cb2.zip Doxygen-7c3b332d233965544467f5e84e249e5985587cb2.tar.gz Doxygen-7c3b332d233965544467f5e84e249e5985587cb2.tar.bz2 |
Fix the problem character string between '<' and '>' is not output in doxywizard log. (#7631)
Add the escape processing for strings passed to m_outputLog->append() in MainWindow::readStdout().
-rwxr-xr-x | addon/doxywizard/doxywizard.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/addon/doxywizard/doxywizard.cpp b/addon/doxywizard/doxywizard.cpp index 5f8b1bc..27c99da 100755 --- a/addon/doxywizard/doxywizard.cpp +++ b/addon/doxywizard/doxywizard.cpp @@ -548,7 +548,11 @@ void MainWindow::readStdout() { text1 += text; m_outputLog->clear(); - m_outputLog->append(APPQT(text1.trimmed())); +#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) + m_outputLog->append(APPQT(text1.toHtmlEscaped().trimmed())); +#else + m_outputLog->append(APPQT(Qt::escape(text1).trimmed())); +#endif } } } |