diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-04-11 18:17:14 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-04-11 20:24:48 +0200 |
commit | b6f7a4908d1c3fc610440a1cbbbc1673a53da8b6 (patch) | |
tree | 7329d9e82056bc85b44664b61b5f0a26de548496 /sw/qa/extras | |
parent | 8094fa17207729c119f7a1fa399286919dd1a8a3 (diff) |
sw XHTML export: properly write <li>...</li> around paragraphs
HTML allows just writing <li>, but XHTML really insist on an explicit
end element for list items.
Change-Id: Ia4aef95c290800d6dc2f6559e7b7bfa3a4213376
Reviewed-on: https://gerrit.libreoffice.org/52734
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sw/qa/extras')
-rw-r--r-- | sw/qa/extras/htmlexport/htmlexport.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/qa/extras/htmlexport/htmlexport.cxx b/sw/qa/extras/htmlexport/htmlexport.cxx index f659eba0b1c8..bafe6798c8c4 100644 --- a/sw/qa/extras/htmlexport/htmlexport.cxx +++ b/sw/qa/extras/htmlexport/htmlexport.cxx @@ -489,6 +489,9 @@ DECLARE_HTMLEXPORT_TEST(testReqIfList, "reqif-list.xhtml") // This failed, the 'style' attribute was written, even if the input did // not had one. CPPUNIT_ASSERT_EQUAL(static_cast<sal_Int32>(-1), aStream.indexOf(" style=\"")); + + // This failed <li> was only opened, not closed. + CPPUNIT_ASSERT(aStream.indexOf("</reqif-xhtml:li>") != -1); } DECLARE_HTMLEXPORT_ROUNDTRIP_TEST(testReqIfOle2, "reqif-ole2.xhtml") |