From a11e07a62fb78cae8d33d132550454a5db96e26e 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. --- lib/lyx2lyx/LyX.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lyx2lyx/LyX.py b/lib/lyx2lyx/LyX.py index 18088a4dea..39a77e3827 100644 --- a/lib/lyx2lyx/LyX.py +++ b/lib/lyx2lyx/LyX.py @@ -345,7 +345,7 @@ class LyX_base: if check_token(decoded, '\\end_preamble'): continue - line = line.strip() + line = line.rstrip() if not line: continue -- 2.39.2