DocBook: new-line behaviour in bibliographies.

This commit is contained in:
Thibaut Cuvelier 2020-08-31 00:45:19 +02:00
parent ff2e4ec7e6
commit 8f3d0fd88f
3 changed files with 8 additions and 2 deletions

View File

@ -34,12 +34,15 @@ Working with Text
<bibliography>
<title>References</title>
<biblioentry xml:id="Bringhurst2005">
<title>The Elements of Typographic Style</title><edition>3.1</edition><bibliomisc role="type">book</bibliomisc>
<title>The Elements of Typographic Style</title>
<edition>3.1</edition>
<bibliomisc role="type">book</bibliomisc>
<publisher>
<publishername>Hartley &amp; Marks</publishername>
</publisher>
<pubdate>2005</pubdate>
<authorgroup><author>
<authorgroup>
<author>
<personname>
<firstname>Robert</firstname>
<surname>Bringhurst</surname>

View File

@ -1700,6 +1700,8 @@ docstring authorsToDocBookAuthorGroup(docstring const & authorsString, XMLStream
// Output the list of authors.
xs << xml::StartTag("authorgroup");
xs << xml::CR();
auto it = authors.cbegin();
auto en = authors.cend();
for (size_t i = 0; it != en; ++it, ++i) {

View File

@ -1200,6 +1200,7 @@ void InsetBibtex::docbook(XMLStream & xs, OutputParams const &) const
xs << xml::StartTag(toDocBookTag[match[1]]);
xs << from_utf8(match[2].str());
xs << xml::EndTag(toDocBookTag[match[1]]);
xs << xml::CR();
}
} else {
LYXERR0("The BibTeX field " << match[1].str() << " is unknown.");