sw/source/core/txtnode/txatbase.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 1647493e5cbb9cf4f06b7d0387d6763a2f30fdae Author: Miklos Vajna <vmik...@collabora.com> AuthorDate: Fri Feb 2 08:00:42 2024 +0100 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Fri Feb 2 12:17:31 2024 +0100 sw doc model xml dump: show details of comments And fix a creative XML attribute name. 'm_aAttr.getItem()' is not really well-formed, try 'attr-item' instead. Change-Id: I108cba8c6cff8d19c388710bbf693e3e8214f3f1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162926 Reviewed-by: Miklos Vajna <vmik...@collabora.com> Tested-by: Jenkins diff --git a/sw/source/core/txtnode/txatbase.cxx b/sw/source/core/txtnode/txatbase.cxx index 32ba0586853e..968a7b2d2b77 100644 --- a/sw/source/core/txtnode/txatbase.cxx +++ b/sw/source/core/txtnode/txatbase.cxx @@ -99,7 +99,7 @@ void SwTextAttr::dumpAsXml(xmlTextWriterPtr pWriter) const if (End()) (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("end"), BAD_CAST(OString::number(*End()).getStr())); (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr())); - (void)xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("m_aAttr.getItem()"), "%p", m_aAttr.getItem()); + (void)xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("attr-item"), "%p", m_aAttr.getItem()); const char* pWhich = nullptr; std::optional<OString> oValue; switch (Which()) @@ -143,6 +143,7 @@ void SwTextAttr::dumpAsXml(xmlTextWriterPtr pWriter) const GetAutoFormat().dumpAsXml(pWriter); break; case RES_TXTATR_FIELD: + case RES_TXTATR_ANNOTATION: case RES_TXTATR_INPUTFIELD: GetFormatField().dumpAsXml(pWriter); break;