]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetMarginal.cpp
XHTML/DocBook: merge code duplicates for vertical alignment.
[features.git] / src / insets / InsetMarginal.cpp
index 54922fced5acec533d95d8d254c0775b7474fb6a..a0b74c64ed9eb1ce0c402209e2cb4eaadd40cb89 100644 (file)
  */
 
 #include <config.h>
-#include <output_docbook.h>
 
 #include "InsetMarginal.h"
 
 #include "Buffer.h"
 #include "BufferParams.h"
-#include "OutputParams.h"
+#include "output_docbook.h"
 #include "TocBackend.h"
 
 #include "support/docstream.h"
@@ -48,7 +47,8 @@ void InsetMarginal::docbook(XMLStream & xs, OutputParams const & runparams) cons
        // Unfortunately, only for XSL-FO output with the default style sheets, hence the role.
        xs << xml::StartTag("sidebar", "role=\"margin\"");
        xs << xml::CR();
-       xs << "<?dbfo float-type=\"margin.note\"?>";
+       xs << XMLStream::ESCAPE_NONE << "<?dbfo float-type=\"margin.note\"?>";
+       xs << xml::CR();
        InsetText::docbook(xs, runparams);
        xs << xml::EndTag("sidebar");
 }