]> git.lyx.org Git - features.git/commitdiff
Only trim right end of lines in header. This allows us to preserve
authorRichard Heck <rgheck@lyx.org>
Fri, 24 Jun 2016 18:57:28 +0000 (14:57 -0400)
committerRichard Heck <rgheck@lyx.org>
Sun, 10 Jul 2016 04:19:19 +0000 (00:19 -0400)
whitespace in local layout.

lib/lyx2lyx/LyX.py

index 18088a4dea145e7296a9979f36ba5dcb4aa68324..39a77e38278d9ff161f0e4f9de93b53074263807 100644 (file)
@@ -345,7 +345,7 @@ class LyX_base:
             if check_token(decoded, '\\end_preamble'):
                 continue
 
-            line = line.strip()
+            line = line.rstrip()
             if not line:
                 continue