]> git.lyx.org Git - lyx.git/blobdiff - lib/scripts/layout2layout.py
fix: http://bugzilla.lyx.org/show_bug.cgi?id=452
[lyx.git] / lib / scripts / layout2layout.py
index 0056139ac23ae28162c8538dff84a8435f171edd..59e43e743e8533d2f6f0c8ef86789595617c41c6 100644 (file)
@@ -135,7 +135,7 @@ def convert(lines):
                                 return
                         error('Cannot convert file format %s' % format)
                 else:
-                       lines.insert(i, "Format 2")
+                        lines.insert(i, "Format 2")
                         only_comment = 0
                         continue
 
@@ -282,7 +282,7 @@ def convert(lines):
                 i = i + 1
 
             # Add the TocLevel setting for sectioning styles
-           if toclevels.has_key(style) and maxcounter <= toclevels[style]:
+            if toclevels.has_key(style) and maxcounter <= toclevels[style]:
                 lines.insert(i, '%sTocLevel %d' % (space1, toclevels[style]))
                 i = i + 1