summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-08-10 20:25:52 +0200
committerMichael Stahl <mstahl@redhat.com>2014-08-11 10:11:26 +0000
commit4c9f600eb3ab76f2f4f4fde0cdc3bc91862d029b (patch)
tree46ac5f982282aadca1e7b7bb0b23aded1e2bea38 /sw
parent31ac0e35cfa1e8d012f180a97de13c440908411d (diff)
fdo#82106 RTF import: fix missing tab after special footnote
(cherry picked from commit 8ae087b8fcc25f5ce83e339d447d2899d3059d45) Change-Id: I5ea45dbed652231acdcc3632ced728ed8bcb621a Reviewed-on: https://gerrit.libreoffice.org/10861 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
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 ff2cd1a797c9..ad42e6c94754 100644
--- a/sw/qa/extras/rtfimport/rtfimport.cxx
+++ b/sw/qa/extras/rtfimport/rtfimport.cxx
@@ -1873,6 +1873,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: */