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-22 19:40:44 +0200 |
commit | d9b11bb733e3a3e2546634f6792691aaa473be65 (patch) | |
tree | 98ba82956302e0ddd8e0aa748c25e190bf494e81 | |
parent | 47aa4af2d69c8539f177e46ad122fa3559806e14 (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.
Pick-to: 6.0 5.15
Change-Id: I6116552fc3ea8f7ddc1cc07d51370f868de97bb3
Reviewed-by: Christian Tismer <tismer@stackless.com>
-rw-r--r-- | sources/shiboken6/generator/qtdoc/qtdocgenerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/shiboken6/generator/qtdoc/qtdocgenerator.cpp b/sources/shiboken6/generator/qtdoc/qtdocgenerator.cpp index 215e756de..7e8454793 100644 --- a/sources/shiboken6/generator/qtdoc/qtdocgenerator.cpp +++ b/sources/shiboken6/generator/qtdoc/qtdocgenerator.cpp @@ -588,7 +588,7 @@ bool QtDocGenerator::writeInjectDocumentation(TextStream& s, continue; doc.setValue(mod.code(), Documentation::Detailed, fmt); - writeFormattedText(s, doc.value(), cppClass); + writeFormattedText(s, doc, cppClass); didSomething = true; } } |