]> git.lyx.org Git - lyx.git/commitdiff
LyX.py: fix for previous commit
authorUwe Stöhr <uwestoehr@web.de>
Sun, 9 Sep 2007 18:37:50 +0000 (18:37 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Sun, 9 Sep 2007 18:37:50 +0000 (18:37 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20175 a592a061-630c-0410-9148-cb99ea01b6c8

lib/lyx2lyx/LyX.py

index b29da4e771dab49f91e3fa76fd804563485a7c0b..447f954428abfbde586b1790e55a387ae5c20ad4 100644 (file)
@@ -541,7 +541,7 @@ class LyX_Base:
                     k = k + 1
 
             # trim empty lines in the end.
                     k = k + 1
 
             # trim empty lines in the end.
-            while par and par[-1].strip():
+            while par and par[-1].strip() == '':
                 par.pop()
 
             toc_par.append(Paragraph(section, par))
                 par.pop()
 
             toc_par.append(Paragraph(section, par))