summaryrefslogtreecommitdiff
path: root/sw/qa/unit/swmodeltestbase.cxx
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2022-12-01 11:39:05 +0100
committerSzymon Kłos <szymon.klos@collabora.com>2023-02-08 11:09:46 +0000
commit54298f7f23e699e99e979bdf945c6ae2bee1a12f (patch)
tree9cf3804d063318273adc5ccbd3564bac822bfacb /sw/qa/unit/swmodeltestbase.cxx
parenta0875d09d9eeb368e9e319f3f2f29ec3be71b56c (diff)
htmlexport: close li mark not only in xhtml
As commented in sw/source/filter/html/htmlatr.cxx:766 "// OutHTML_NumberBulletListEnd() will end a list item" We have to do it also in HTML not only XHTML so node will be closed and we get correct structure. This is followup for: commit 2466b9fcf20ee61f6fc621298011c0efaa55e7c6 Author: Miklos Vajna <vmiklos@collabora.com> Date: Mon Feb 21 16:38:51 2022 +0100 sw HTML export, XHTML mode: fix lost </li> when last list item is not numbered Change-Id: I99baa59b437572b157df8057445cf6c741f936b4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143508 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Andras Timar <andras.timar@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146651 Tested-by: Jenkins Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'sw/qa/unit/swmodeltestbase.cxx')
-rw-r--r--sw/qa/unit/swmodeltestbase.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/sw/qa/unit/swmodeltestbase.cxx b/sw/qa/unit/swmodeltestbase.cxx
index 05918c52397a..1163ace48efa 100644
--- a/sw/qa/unit/swmodeltestbase.cxx
+++ b/sw/qa/unit/swmodeltestbase.cxx
@@ -603,4 +603,11 @@ void SwModelTestBase::WrapReqifFromTempFile(SvMemoryStream& rStream)
rStream.Seek(0);
}
+void SwModelTestBase::WrapFromTempFile(SvMemoryStream& rStream)
+{
+ SvFileStream aFileStream(maTempFile.GetURL(), StreamMode::READ);
+ rStream.WriteStream(aFileStream);
+ rStream.Seek(0);
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */