]> 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 0a9953d7f284549e0cefaca05871c83ed5c6c5b0..59e43e743e8533d2f6f0c8ef86789595617c41c6 100644 (file)
@@ -1,5 +1,5 @@
-#! /usr/bin/env python -tt
-# -*- coding: iso-8859-1 -*-
+#! /usr/bin/env python
+# -*- 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