[LyX/master] Signify added/deleted apr break in ct output
Juergen Spitzmueller
spitz at lyx.org
Thu Dec 26 14:27:13 UTC 2019
commit 6ed3eb6833ed1a723dc55962e643f58ec1ba2375
Author: Juergen Spitzmueller <spitz at lyx.org>
Date: Thu Dec 26 15:43:00 2019 +0100
Signify added/deleted apr break in ct output
Fixes #3159
---
src/output_latex.cpp | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/output_latex.cpp b/src/output_latex.cpp
index 8830eb0..18c87b1 100644
--- a/src/output_latex.cpp
+++ b/src/output_latex.cpp
@@ -1338,6 +1338,14 @@ void TeXOnePar(Buffer const & buf,
bool const last_was_separator =
par.size() > 0 && par.isEnvSeparator(par.size() - 1);
+ // Signify added/deleted par break in output if show changes in output
+ if (nextpar && !os.afterParbreak() && !last_was_separator
+ && bparams.output_changes && par.parEndChange().changed()) {
+ Changes::latexMarkChange(os, bparams, Change(Change::UNCHANGED),
+ par.parEndChange(), runparams);
+ os << bparams.encoding().latexString(docstring(1, 0x00b6)).first << "}";
+ }
+
if (pending_newline) {
if (unskip_newline)
// prevent unwanted whitespace
More information about the lyx-cvs
mailing list