Commit f8048150 authored by Laurent Montel's avatar Laurent Montel 😁

Continue to fix it

parent 1d68b907
......@@ -19,7 +19,7 @@
*/
#include "markupdirector.h"
#include <QDebug>
using namespace KPIMTextEdit;
MarkupDirector::MarkupDirector(Grantlee::AbstractMarkupBuilder *builder)
......@@ -84,7 +84,6 @@ MarkupDirector::processBlockContents(QTextFrame::iterator frameIt,
while (!it.atEnd()) {
it = processFragment(it, it.fragment(), block.document());
}
// Don't have p tags inside li tags.
if (!block.textList()) {
m_builder->endParagraph();
......
......@@ -394,7 +394,8 @@ void PlainTextMarkupBuilder::beginParagraph(Qt::Alignment a, qreal top,
bool PlainTextMarkupBuilder::isQuoteBlock(qreal top, qreal bottom, qreal left, qreal right) const
{
return (top == 12) && (bottom == 12) && (left == 40) && (right == 40);
//qDebug() << " bool PlainTextMarkupBuilder::isQuoteBlock(qreal top, qreal bottom, qreal left, qreal right) const" << " top " << top << " bottom " << bottom << " left " << left << " righ " << right;
return /*(top == 12) && (bottom == 12) &&*/ (left == 40) && (right == 40);
/*
case Html_blockquote:
margin[QTextHtmlParser::MarginTop] = 12;
......
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