diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2013-12-05 11:33:56 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2013-12-05 11:50:42 +0100 |
commit | b38629ae210b204a6d24d6e9c5c62eaaf563d494 (patch) | |
tree | 1e241f8beda63f6c7672f9776c9185d7270ae25d /sw | |
parent | 215f87fb53164a5fc9af13acdad7fdada2117b60 (diff) |
cp#1000017 DOCX/RTF import: avoid fake tab char in footnotes
Word wants this, so it's added by the exporter to the document, but on
import we should ignore it.
Change-Id: Idcb669ba624bf462a50a85eb4aacf397afb6efe6
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/rtfimport/rtfimport.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/qa/extras/rtfimport/rtfimport.cxx b/sw/qa/extras/rtfimport/rtfimport.cxx index 757922943c66..88df7ad22119 100644 --- a/sw/qa/extras/rtfimport/rtfimport.cxx +++ b/sw/qa/extras/rtfimport/rtfimport.cxx @@ -1358,9 +1358,8 @@ DECLARE_RTFIMPORT_TEST(testCp1000018, "cp1000018.rtf") uno::Reference<text::XFootnotesSupplier> xFootnotesSupplier(mxComponent, uno::UNO_QUERY); uno::Reference<container::XIndexAccess> xFootnotes(xFootnotesSupplier->getFootnotes(), uno::UNO_QUERY); uno::Reference<text::XTextRange> xTextRange(xFootnotes->getByIndex(0), uno::UNO_QUERY); - // Why the tab has to be removed here? OUString aExpected("Footnote first line.\n"); - CPPUNIT_ASSERT_EQUAL(aExpected, xTextRange->getString().replaceAll("\t", "")); + CPPUNIT_ASSERT_EQUAL(aExpected, xTextRange->getString()); } #endif |