[LyX/master] DocBook: wrong type of XML tag.

Thibaut Cuvelier tcuvelier at lyx.org
Sat Oct 16 20:18:37 UTC 2021


commit e0830592f0a79609df73695528d0ccf256b76765
Author: Thibaut Cuvelier <tcuvelier at lyx.org>
Date:   Sat Oct 16 13:55:52 2021 +0200

    DocBook: wrong type of XML tag.
    
    imagedata should have been a compound tag, because it should have no content, only its attributes are relevant (instead of a start-end pair of tags).
---
 src/insets/InsetText.cpp |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/insets/InsetText.cpp b/src/insets/InsetText.cpp
index 8c2b2c4..20bf3ea 100644
--- a/src/insets/InsetText.cpp
+++ b/src/insets/InsetText.cpp
@@ -680,7 +680,7 @@ void InsetText::docbookRenderAsImage(XMLStream & xs, OutputParams const & rp, XH
 	// Output the rendered inset.
 	xs << xml::StartTag("imageobject")
 	   << xml::CR()
-	   << xml::StartTag("imagedata", std::string("fileref='") + filename.onlyFileName() + "'")
+	   << xml::CompTag("imagedata", std::string("fileref='") + filename.onlyFileName() + "'")
 	   << xml::CR()
 	   << xml::EndTag("imageobject")
 	   << xml::CR();
@@ -695,8 +695,7 @@ void InsetText::docbookRenderAsImage(XMLStream & xs, OutputParams const & rp, XH
 	   << xml::EndTag("textobject")
 	   << xml::CR();
 
-	xs << xml::EndTag("mediaobject")
-	   << xml::CR();
+	xs << xml::EndTag("mediaobject");
 }
 
 


More information about the lyx-cvs mailing list