[okular] [Bug 435535] Okular EPUB backend renders black background with black text
Yuri Chornoivan
bugzilla_noreply at kde.org
Sun Apr 11 19:16:04 BST 2021
https://bugs.kde.org/show_bug.cgi?id=435535
--- Comment #13 from Yuri Chornoivan <yurchor at ukr.net> ---
Ok. Here's oneliner that will be never accepted (but tested to work). ;)
diff --git a/generators/epub/converter.cpp b/generators/epub/converter.cpp
index 291b9caed..2f79dbc9b 100644
--- a/generators/epub/converter.cpp
+++ b/generators/epub/converter.cpp
@@ -217,6 +217,7 @@ QTextDocument *Converter::convert(const QString &fileName)
// as QTextCharFormat::anchorNames() ignores sections, replace it with
<p>
htmlContent.replace(QRegExp(QStringLiteral("< *section")),
QStringLiteral("<p"));
htmlContent.replace(QRegExp(QStringLiteral("< */ *section")),
QStringLiteral("</p"));
+ htmlContent.replace(QStringLiteral("background-color:black;"),
QStringLiteral(""));
// convert svg tags to img
const int maxHeight = mTextDocument->maxContentHeight();
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Okular-devel
mailing list