diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2013-11-18 11:32:57 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2013-11-18 11:37:41 +0100 |
commit | 8299924b750f74f799dc683134788a285b38bd72 (patch) | |
tree | 8456e54a91b045636d92e6e8ec082efb1ab36222 /sw/qa/extras/rtfexport/rtfexport.cxx | |
parent | 86fd7fd4f634d5a8a566500ec4248785ea2e790e (diff) |
cp#1000018 RTF export: avoid additional paragraph at footnote end
Change-Id: I430a7d705208f197050a7d521c9c20b267c33f26
Diffstat (limited to 'sw/qa/extras/rtfexport/rtfexport.cxx')
-rw-r--r-- | sw/qa/extras/rtfexport/rtfexport.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/qa/extras/rtfexport/rtfexport.cxx b/sw/qa/extras/rtfexport/rtfexport.cxx index 58df4b5af9d7..b6084cbed641 100644 --- a/sw/qa/extras/rtfexport/rtfexport.cxx +++ b/sw/qa/extras/rtfexport/rtfexport.cxx @@ -341,10 +341,11 @@ DECLARE_RTFEXPORT_TEST(testFdo53113, "fdo53113.odt") DECLARE_RTFEXPORT_TEST(testFdo55939, "fdo55939.odt") { // The problem was that the exported RTF was invalid. + // Also, the 'Footnote text.' had an additional newline at its end. uno::Reference<text::XTextRange> xParagraph(getParagraph(1)); getRun(xParagraph, 1, "Main text before footnote."); // Why the tab has to be removed here? - CPPUNIT_ASSERT_EQUAL(OUString("Footnote text.\n"), + CPPUNIT_ASSERT_EQUAL(OUString("Footnote text."), getProperty< uno::Reference<text::XTextRange> >(getRun(xParagraph, 2), "Footnote")->getText()->getString().replaceAll("\t", "")); getRun(xParagraph, 3, " Text after the footnote."); // However, this leading space is intentional and OK. } |