https://bugs.kde.org/show_bug.cgi?id=435535

--- Comment #13 from Yuri Chornoivan <yurc...@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 watching all bug changes.

Reply via email to