DocBook: fix margin notes.

They were nested twice in <sidebar>. Also fixes a new line issue.
This commit is contained in:
Thibaut Cuvelier 2020-08-31 00:42:32 +02:00
parent 91982ee105
commit 6d246bba69
2 changed files with 2 additions and 2 deletions

View File

@ -44,8 +44,7 @@ InsetLayout Marginal
EndHTMLStyle
AddToToc marginalnote
IsTocCaption true
DocBookTag sidebar
DocBookAttr role="margin"
DocBookTag para
End
InsetLayout Foot

View 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");
}