]> git.lyx.org Git - features.git/commitdiff
DocBook: new-line behaviour in bibliographies.
authorThibaut Cuvelier <tcuvelier@lyx.org>
Sun, 30 Aug 2020 22:45:19 +0000 (00:45 +0200)
committerThibaut Cuvelier <tcuvelier@lyx.org>
Sat, 19 Sep 2020 18:43:39 +0000 (20:43 +0200)
autotests/export/docbook/Tufte_Book.xml
src/BiblioInfo.cpp
src/insets/InsetBibtex.cpp

index 4968e25a7b02f28f9961a0049ae3b514b4cedea6..3289cfd7638a76c780176edaa631b57fbb01ec8e 100644 (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>
index 7005519ac3f8978a535e8f4c258a2b7402b71e06..6d2af6cd4797cbed68c8f785e0ba23dbe84d35eb 100644 (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) {
index 05fd23dfb89623e0ab2c31dd0947d30797a7ae75..bee485eeb6f89e6d2d45b802455120c9c9e637b8 100644 (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.");