summaryrefslogtreecommitdiffstats
path: root/tests/auto/qtextodfwriter/tst_qtextodfwriter.cpp
diff options
context:
space:
mode:
authorThomas Zander <thomas.zander@trolltech.com>2009-06-11 11:12:30 (GMT)
committerThomas Zander <thomas.zander@trolltech.com>2009-06-11 12:15:37 (GMT)
commitdc802d17d998b62546de0a9725535202d7cbf9e4 (patch)
tree430834243566dda2f3c0e7233259079fe3508f1e /tests/auto/qtextodfwriter/tst_qtextodfwriter.cpp
parent5f31403e74c4eaf89a213ce3514fe380d221298b (diff)
downloadQt-dc802d17d998b62546de0a9725535202d7cbf9e4.zip
Qt-dc802d17d998b62546de0a9725535202d7cbf9e4.tar.gz
Qt-dc802d17d998b62546de0a9725535202d7cbf9e4.tar.bz2
Makes the ODF writer use one text:tab tag for each tab, per ODF spec.
We used tab-ref to place multiple tabs compressed into one tag just like text:s does, but thats not what the spec says. We now don't sum up tabs anymore but just simply write out one "<text:tab/>" tag per tab. Task: 249110
Diffstat (limited to 'tests/auto/qtextodfwriter/tst_qtextodfwriter.cpp')
-rw-r--r--tests/auto/qtextodfwriter/tst_qtextodfwriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qtextodfwriter/tst_qtextodfwriter.cpp b/tests/auto/qtextodfwriter/tst_qtextodfwriter.cpp
index f92e30f..f8c7cdf 100644
--- a/tests/auto/qtextodfwriter/tst_qtextodfwriter.cpp
+++ b/tests/auto/qtextodfwriter/tst_qtextodfwriter.cpp
@@ -133,7 +133,7 @@ void tst_QTextOdfWriter::testWriteParagraph_data()
QTest::newRow("tab") << "word\ttab x" <<
"<text:p text:style-name=\"p1\"><text:span text:style-name=\"c0\">word<text:tab/>tab x</text:span></text:p>";
QTest::newRow("tab2") << "word\t\ttab\tx" <<
- "<text:p text:style-name=\"p1\"><text:span text:style-name=\"c0\">word<text:tab text:tab-ref=\"2\"/>tab<text:tab/>x</text:span></text:p>";
+ "<text:p text:style-name=\"p1\"><text:span text:style-name=\"c0\">word<text:tab/><text:tab/>tab<text:tab/>x</text:span></text:p>";
QTest::newRow("misc") << "foobar word\ttab x" <<
"<text:p text:style-name=\"p1\"><text:span text:style-name=\"c0\">foobar <text:s text:c=\"2\"/>word<text:tab/>tab x</text:span></text:p>";
QTest::newRow("misc2") << "\t \tFoo" <<