Commit ea995fa8 authored by David Faure's avatar David Faure
Browse files

GIT_SILENT oops revert unwanted changes

parent e6899bba
......@@ -309,9 +309,7 @@ void TemplateParserJob::processWithTemplate(const QString &tmpl)
if (mHtmlElement.isEmpty()) { //plain mails only
QString htmlReplace = mOtp->plainTextContent().toHtmlEscaped();
qDebug() << "htmlReplace (before) =" << htmlReplace;
htmlReplace = htmlReplace.replace(QLatin1Char('\n'), QStringLiteral("<br />"));
qDebug() << "htmlReplace (after) =" << htmlReplace;
mHtmlElement = QStringLiteral("<html><head></head><body>%1</body></html>\n").arg(htmlReplace);
}
......@@ -386,7 +384,6 @@ void TemplateParserJob::slotExtractInfoDone(const TemplateParserExtractHtmlInfoR
const QString str = QString::fromLocal8Bit(content.constData(), content.size());
plainBody.append(str);
const QString body = plainToHtml(str);
qDebug() << body;
htmlBody.append(body);
} else if (mDebug) {
KMessageBox::error(
......@@ -438,12 +435,10 @@ void TemplateParserJob::slotExtractInfoDone(const TemplateParserExtractHtmlInfoR
if (plainQuote.endsWith(QLatin1Char('\n'))) {
plainQuote.chop(1);
}
qDebug() << "plainQuote=" << plainQuote;
plainBody.append(plainQuote);
const QString htmlQuote =
quotedHtmlText(htmlMessageText(shouldStripSignature(), SelectionAllowed));
qDebug() << "htmlQuote=" << htmlQuote;
htmlBody.append(htmlQuote);
}
......@@ -556,7 +551,6 @@ void TemplateParserJob::slotExtractInfoDone(const TemplateParserExtractHtmlInfoR
plainBody.append(plainStr);
const QString htmlStr = htmlMessageText(shouldStripSignature(), NoSelectionAllowed);
qDebug() << htmlStr;
htmlBody.append(htmlStr);
}
......@@ -1189,7 +1183,6 @@ void TemplateParserJob::slotExtractInfoDone(const TemplateParserExtractHtmlInfoR
htmlBody.clear();
} else {
makeValidHtml(htmlBody);
qDebug() << "AFTER makeValidHtml:" << htmlBody;
}
addProcessedBodyToMessage(plainBody, htmlBody);
Q_EMIT parsingDone(mForceCursorPosition);
......@@ -1238,8 +1231,6 @@ QString TemplateParserJob::getHtmlSignature() const
void TemplateParserJob::addProcessedBodyToMessage(const QString &plainBody,
const QString &htmlBody) const
{
qDebug() << "htmlBody=" << htmlBody;
MessageCore::ImageCollector ic;
ic.collectImagesFrom(mOrigMsg.data());
......@@ -1286,7 +1277,6 @@ void TemplateParserJob::addProcessedBodyToMessage(const QString &plainBody,
}
}
qDebug() << mainPart->encodedBody();
mMsg->setBody(mainPart->encodedBody());
mMsg->setHeader(mainPart->contentType());
mMsg->setHeader(mainPart->contentTransferEncoding());
......
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