summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-08-10 20:25:52 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-08-10 21:04:49 +0200
commit8ae087b8fcc25f5ce83e339d447d2899d3059d45 (patch)
treece4c4bd5fb120f8e22cb2551510ca20f7473fac0 /sw
parent8e9487cf97d944b202d4406561b88068aaf8e386 (diff)
fdo#82106 RTF import: fix missing tab after special footnote
Change-Id: I5ea45dbed652231acdcc3632ced728ed8bcb621a
Diffstat (limited to 'sw')
-rw-r--r--sw/qa/extras/rtfimport/data/fdo82106.rtf4
-rw-r--r--sw/qa/extras/rtfimport/rtfimport.cxx6
2 files changed, 10 insertions, 0 deletions
diff --git a/sw/qa/extras/rtfimport/data/fdo82106.rtf b/sw/qa/extras/rtfimport/data/fdo82106.rtf
new file mode 100644
index 000000000000..391914a5f491
--- /dev/null
+++ b/sw/qa/extras/rtfimport/data/fdo82106.rtf
@@ -0,0 +1,4 @@
+{\rtf1
+hello{\footnote footnote content}\par
+before\tab after\par
+}
diff --git a/sw/qa/extras/rtfimport/rtfimport.cxx b/sw/qa/extras/rtfimport/rtfimport.cxx
index b36f96d1dcee..2dc99cec8391 100644
--- a/sw/qa/extras/rtfimport/rtfimport.cxx
+++ b/sw/qa/extras/rtfimport/rtfimport.cxx
@@ -1887,6 +1887,12 @@ DECLARE_RTFIMPORT_TEST(testFdo80742, "fdo80742.rtf")
CPPUNIT_ASSERT_EQUAL(sal_Int32(2), getProperty<sal_Int32>(xPropertySet, "OutlineLevel"));
}
+DECLARE_RTFIMPORT_TEST(testFdo82106, "fdo82106.rtf")
+{
+ // Tab was missing after footnote not containing a tab.
+ getParagraph(2, "before\tafter");
+}
+
CPPUNIT_PLUGIN_IMPLEMENT();
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */