From 9d3917a4b67f66f1eb8442b941c95f753c0c01f7 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Fri, 24 Jun 2016 14:57:28 -0400 Subject: [PATCH] Only trim right end of lines in header. This allows us to preserve whitespace in local layout. (cherry picked from commit a11e07a62fb78cae8d33d132550454a5db96e26e) --- lib/lyx2lyx/LyX.py | 2 +- status.22x | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/lyx2lyx/LyX.py b/lib/lyx2lyx/LyX.py index 1e2147d549..ad8d3c606c 100644 --- a/lib/lyx2lyx/LyX.py +++ b/lib/lyx2lyx/LyX.py @@ -308,7 +308,7 @@ class LyX_base: if check_token(line, '\\end_preamble'): continue - line = line.strip() + line = line.rstrip() if not line: continue diff --git a/status.22x b/status.22x index 2660366e0e..7f781d3835 100644 --- a/status.22x +++ b/status.22x @@ -59,6 +59,8 @@ What's new - Fix display of label font for argument insets. +- Keep leading whitespace when converting local layout. + * USER INTERFACE -- 2.39.5