Kaydet (Commit) adc10e62 authored tarafından Miklos Vajna's avatar Miklos Vajna

sw XHTML export: fix missing namespace prefix of lists

Unordered lists, but fixes ordered lists as a side effect, too.

Change-Id: I1752522e906975b112e6938ffc5456e53a165996
Reviewed-on: https://gerrit.libreoffice.org/52724Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
Tested-by: 's avatarJenkins <ci@libreoffice.org>
üst 6eea5cff
<reqif-xhtml:div>Heading<reqif-xhtml:br/>
<reqif-xhtml:ul>
<reqif-xhtml:li>
<reqif-xhtml:strong>First</reqif-xhtml:strong></reqif-xhtml:li>
<reqif-xhtml:li>
<reqif-xhtml:strong>Second</reqif-xhtml:strong></reqif-xhtml:li>
<reqif-xhtml:li>
<reqif-xhtml:strong>Third</reqif-xhtml:strong>
</reqif-xhtml:li>
</reqif-xhtml:ul>
</reqif-xhtml:div>
......@@ -478,6 +478,18 @@ DECLARE_HTMLEXPORT_TEST(testReqIfTable, "reqif-table.xhtml")
assertXPathNoAttribute(pDoc, "/html/body/div/table/tr/th", "bgcolor");
}
DECLARE_HTMLEXPORT_TEST(testReqIfList, "reqif-list.xhtml")
{
SvStream* pStream = maTempFile.GetStream(StreamMode::READ);
CPPUNIT_ASSERT(pStream);
pStream->Seek(STREAM_SEEK_TO_END);
sal_uInt64 nLength = pStream->Tell();
pStream->Seek(0);
OString aStream(read_uInt8s_ToOString(*pStream, nLength));
// This failed, <ul> was written.
CPPUNIT_ASSERT(aStream.indexOf("<reqif-xhtml:ul>") != -1);
}
DECLARE_HTMLEXPORT_ROUNDTRIP_TEST(testReqIfOle2, "reqif-ole2.xhtml")
{
uno::Reference<text::XTextEmbeddedObjectsSupplier> xSupplier(mxComponent, uno::UNO_QUERY);
......
......@@ -182,6 +182,7 @@ Writer& OutHTML_NumBulListStart( SwHTMLWriter& rWrt,
rWrt.m_aBulletGrfs[i].clear();
OString sOut = "<";
sOut += rWrt.GetNamespace();
const SwNumFormat& rNumFormat = rInfo.GetNumRule()->Get( i );
sal_Int16 eType = rNumFormat.GetNumberingType();
if( SVX_NUM_CHAR_SPECIAL == eType )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment