Commit 91333fdf authored by Albert Astals Cid's avatar Albert Astals Cid

Merge remote-tracking branch 'origin/Applications/19.04'

parents eb1e7964 9f98c010
......@@ -303,13 +303,7 @@ QTextDocument* Converter::convert( const QString &fileName )
QTextBlock before;
if(firstPage) {
// preHtml & postHtml make it possible to have a margin around the content of the page
const QString preHtml = QString::fromLatin1("<html><head></head><body>"
"<table style=\"-qt-table-type: root; margin-top:%1px; margin-bottom:%1px; margin-left:%1px; margin-right:%1px;\">"
"<tr>"
"<td style=\"border: none;\">").arg(mTextDocument->padding);
const QString postHtml = QStringLiteral("</tr></table></body></html>");
mTextDocument->setHtml(preHtml + htmlContent + postHtml);
mTextDocument->setHtml(htmlContent);
firstPage = false;
before = mTextDocument->begin();
} else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment