]> git.lyx.org Git - features.git/commitdiff
DocBook: fix margin notes.
authorThibaut Cuvelier <tcuvelier@lyx.org>
Sun, 30 Aug 2020 22:42:32 +0000 (00:42 +0200)
committerThibaut Cuvelier <tcuvelier@lyx.org>
Sat, 19 Sep 2020 18:43:39 +0000 (20:43 +0200)
They were nested twice in <sidebar>. Also fixes a new line issue.

lib/layouts/stdinsets.inc
src/insets/InsetMarginal.cpp

index 04c464a1e3b4ca01541ca73fbb6e00dceb21417a..ab15f774563e3e70ae18f9f86d3203e44758ee99 100644 (file)
@@ -44,8 +44,7 @@ InsetLayout Marginal
        EndHTMLStyle
        AddToToc              marginalnote
        IsTocCaption          true
-       DocBookTag            sidebar
-       DocBookAttr           role="margin"
+       DocBookTag            para
 End
 
 InsetLayout Foot
index 5d2fb909f291caff80cafa74f1cb84b3d08eaeac..3a5296d0895a925da88525fb9682824cd87df187 100644 (file)
@@ -49,6 +49,7 @@ void InsetMarginal::docbook(XMLStream & xs, OutputParams const & runparams) cons
        xs << xml::StartTag("sidebar", "role=\"margin\"");
        xs << xml::CR();
        xs << XMLStream::ESCAPE_NONE << "<?dbfo float-type=\"margin.note\"?>";
+       xs << xml::CR();
        InsetText::docbook(xs, runparams);
        xs << xml::EndTag("sidebar");
 }