diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-04-22 16:14:21 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-04-23 12:30:53 +0200 |
commit | 792ab2f160ea64ba25300dbe766c7eb6956bc50d (patch) | |
tree | 15a2442b594ab1daedcbadcf998122a554f3464d /sources | |
parent | c4067b118b2fdf701ce89603ed4fa0c3bc459364 (diff) |
shiboken6: Fix XML errors when injecting target format (RST) documentation
In writeInjectDocumentation(), pass class Documentation (including
format) instead of just the string to writeFormattedText()
to prevent it from running through XMLToSphinx.
Change-Id: I6116552fc3ea8f7ddc1cc07d51370f868de97bb3
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit d9b11bb733e3a3e2546634f6792691aaa473be65)
Diffstat (limited to 'sources')
-rw-r--r-- | sources/shiboken2/generator/qtdoc/qtdocgenerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/shiboken2/generator/qtdoc/qtdocgenerator.cpp b/sources/shiboken2/generator/qtdoc/qtdocgenerator.cpp index 784cdfbf2..8622c6c5b 100644 --- a/sources/shiboken2/generator/qtdoc/qtdocgenerator.cpp +++ b/sources/shiboken2/generator/qtdoc/qtdocgenerator.cpp @@ -1940,7 +1940,7 @@ bool QtDocGenerator::writeInjectDocumentation(QTextStream& s, continue; doc.setValue(mod.code(), Documentation::Detailed, fmt); - writeFormattedText(s, doc.value(), cppClass); + writeFormattedText(s, doc, cppClass); didSomething = true; } } |