diff options
Diffstat (limited to 'sources/shiboken6/generator/qtdoc/qtxmltosphinx.cpp')
-rw-r--r-- | sources/shiboken6/generator/qtdoc/qtxmltosphinx.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sources/shiboken6/generator/qtdoc/qtxmltosphinx.cpp b/sources/shiboken6/generator/qtdoc/qtxmltosphinx.cpp index 52d8f4614..693904b09 100644 --- a/sources/shiboken6/generator/qtdoc/qtxmltosphinx.cpp +++ b/sources/shiboken6/generator/qtdoc/qtxmltosphinx.cpp @@ -28,6 +28,7 @@ #include "qtxmltosphinx.h" #include "qtxmltosphinxinterface.h" +#include <codesniphelpers.h> #include "rstformat.h" #include <QtCore/QDebug> @@ -520,7 +521,7 @@ QString QtXmlToSphinx::readFromLocation(const QString &location, const QString & if (identifier.isEmpty()) { while (!inputFile.atEnd()) code += QString::fromUtf8(inputFile.readLine()); - return code; + return CodeSnipHelpers::fixSpaces(code); } const QRegularExpression searchString(QLatin1String("//!\\s*\\[") @@ -550,7 +551,7 @@ QString QtXmlToSphinx::readFromLocation(const QString &location, const QString & return QString(); // null } - return code; + return CodeSnipHelpers::fixSpaces(code); } void QtXmlToSphinx::handleHeadingTag(QXmlStreamReader& reader) |