commit 8f3d0fd88fa69d2b8b3f523a02fed88d55cdc22a
Author: Thibaut Cuvelier <[email protected]>
Date:   Mon Aug 31 00:45:19 2020 +0200

    DocBook: new-line behaviour in bibliographies.
---
 autotests/export/docbook/Tufte_Book.xml |    7 +++++--
 src/BiblioInfo.cpp                      |    2 ++
 src/insets/InsetBibtex.cpp              |    1 +
 3 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/autotests/export/docbook/Tufte_Book.xml 
b/autotests/export/docbook/Tufte_Book.xml
index 4968e25..3289cfd 100644
--- a/autotests/export/docbook/Tufte_Book.xml
+++ b/autotests/export/docbook/Tufte_Book.xml
@@ -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>
diff --git a/src/BiblioInfo.cpp b/src/BiblioInfo.cpp
index 7005519..6d2af6c 100644
--- a/src/BiblioInfo.cpp
+++ b/src/BiblioInfo.cpp
@@ -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) {
diff --git a/src/insets/InsetBibtex.cpp b/src/insets/InsetBibtex.cpp
index 05fd23d..bee485e 100644
--- a/src/insets/InsetBibtex.cpp
+++ b/src/insets/InsetBibtex.cpp
@@ -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.");
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to