From 3eb65f48c97dc5e1a8980afa35bea8e4b16f08ba Mon Sep 17 00:00:00 2001 From: Eskil Abrahamsen Blomfeldt Date: Fri, 4 Sep 2009 15:05:46 +0200 Subject: Remove implicit margin on bulleted lists when exporting to HTML When we export a bulleted list to HTML, we add a meta-block around the list items to set the bullet style of the list ("); + QString(""); } { @@ -1151,7 +1151,7 @@ void tst_QTextDocument::toHtml_data() QTest::newRow("charfmt-for-list-item") << QTextDocumentFragment(&doc) << QString("EMPTYBLOCK") + - QString(""); + QString(""); } { @@ -1181,7 +1181,7 @@ void tst_QTextDocument::toHtml_data() QTest::newRow("list-indent") << QTextDocumentFragment(&doc) << QString("EMPTYBLOCK") + - QString(""); + QString(""); } { @@ -1445,6 +1445,21 @@ void tst_QTextDocument::toHtml_data() "\n

Bar

" "\n\n\n
"); } + + { + CREATE_DOC_AND_CURSOR(); + + QTextListFormat listFmt; + listFmt.setStyle(QTextListFormat::ListDisc); + + cursor.insertList(listFmt); + cursor.insertText("Blah"); + + QTest::newRow("list-ul-margin") << QTextDocumentFragment(&doc) + << QString("EMPTYBLOCK") + + QString(""); + + } } void tst_QTextDocument::toHtml() -- cgit v0.12