summaryrefslogtreecommitdiff
path: root/sc/qa
diff options
context:
space:
mode:
authorJustin Luth <jluth@mail.com>2022-09-20 14:28:19 -0400
committerJustin Luth <jluth@mail.com>2022-09-21 19:27:44 +0200
commit8f5f0c754222425af019a9fdc1ba47d72c541d9e (patch)
treee2c4689fee3e37ef0897275a7842ea945d46c0d7 /sc/qa
parentf41868a5dcdb1982c1e3064dd985d894eaba0074 (diff)
tdf#75702 ODS import: send text:line-break to editeng
A cell with a line-break specified is no longer a simple string, so send the string to editeng where it can be properly displayed. This already works fine for XLS and XLSX. This change effectively means that text:line-break will disappear, and become two separate paragraphs. Given the nature of spreadsheets, the precidence in various other patches and the failure to properly display without this, I think I'm fine with unilaterally changing one paragraph into two. Change-Id: I7abcbc6f698a4cb319aea5465a8b0393cf63f31f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140262 Tested-by: Jenkins Reviewed-by: Justin Luth <jluth@mail.com>
Diffstat (limited to 'sc/qa')
-rw-r--r--sc/qa/unit/subsequent_export_test2.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/qa/unit/subsequent_export_test2.cxx b/sc/qa/unit/subsequent_export_test2.cxx
index 7bbb908a96fb..cadc2da0d595 100644
--- a/sc/qa/unit/subsequent_export_test2.cxx
+++ b/sc/qa/unit/subsequent_export_test2.cxx
@@ -1456,7 +1456,7 @@ void ScExportTest2::testTdf75702()
xmlDocUniquePtr pContent
= XPathHelper::parseExport2(*this, *xShell, m_xSFactory, "content.xml", FORMAT_ODS);
- assertXPath(pContent, "//table:table-row[1]/table:table-cell/text:p/text:line-break");
+ assertXPath(pContent, "//table:table-row[1]/table:table-cell/text:p", 2);
}
void ScExportTest2::testTdf103829()