]> 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 ff16f5cb962cad32a3ad0c165d5cd86e931fd0c6..59e43e743e8533d2f6f0c8ef86789595617c41c6 100644 (file)
@@ -1,5 +1,5 @@
 #! /usr/bin/env python
-# -*- coding: iso-8859-1 -*-
+# -*- coding: utf-8 -*-
 
 # file layout2layout.py
 # This file is part of LyX, the document processor.
@@ -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