commit 9d3917a4b67f66f1eb8442b941c95f753c0c01f7
Author: Richard Heck <[email protected]>
Date:   Fri Jun 24 14:57:28 2016 -0400

    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 deletions(-)

diff --git a/lib/lyx2lyx/LyX.py b/lib/lyx2lyx/LyX.py
index 1e2147d..ad8d3c6 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 2660366..7f781d3 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
 

Reply via email to