Export the attached mwe.lyx as docbook5.

The patch omits the endlessness, but the bibitem is not produced.

        Kornel

Attachment: mwe.lyx
Description: application/lyx

diff --git a/src/output_docbook.cpp b/src/output_docbook.cpp
index a796e19788..c0c09210a9 100644
--- a/src/output_docbook.cpp
+++ b/src/output_docbook.cpp
@@ -852,11 +852,11 @@ void docbookSimpleAllParagraphs(
 			continue;
 		}
 
 		// Generate this paragraph.
 		tie(par, send) = makeAny(text, buf, xs, runparams, par, send, pend);
-		bpit += distance(lastStartedPar, par);
+		bpit += std::max(1l, distance(lastStartedPar, par));
 	}
 }
 
 
 void docbookParagraphs(Text const &text,
@@ -988,11 +988,11 @@ void docbookParagraphs(Text const &text,
 			}
 		}
 
 		// Generate this paragraph.
 		tie(par, send) = makeAny(text, buf, xs, ourparams, par, send, pend);
-		bpit += distance(lastStartedPar, par);
+		bpit += std::max(1l, distance(lastStartedPar, par));
 	}
 
 	// If need be, close <section>s, but only at the end of the document (otherwise, dealt with at the beginning
 	// of the loop).
 	while (!headerLevels.empty() && headerLevels.top().first > Layout::NOT_IN_TOC) {

Attachment: pgpAuCMAp4AP4.pgp
Description: Digitale Signatur von OpenPGP

-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to