]> git.lyx.org Git - lyx.git/commitdiff
Fix indentation of fen2ascii script so it will run.
authorRichard Heck <rgheck@lyx.org>
Sun, 31 Jul 2016 03:17:30 +0000 (23:17 -0400)
committerRichard Heck <rgheck@lyx.org>
Sun, 31 Jul 2016 03:18:46 +0000 (23:18 -0400)
(cherry picked from commit 22e1063cb9b6bd84e6c1d3adf24b3d93a06b90bb)

lib/scripts/fen2ascii.py
status.22x

index 473515ccc7b68551a5b7d0c0a368c35d8b0f27e7..212dae4f3f817b76473b157562496e55a6f061b8 100644 (file)
@@ -32,15 +32,15 @@ for i in range(8):
     cont = cont + 1
     tmp=""
     for j in comp[i]:
-       if j>='0' and j <= '9':
-           for k in range(int(j)):
-               cont = cont + 1
-               x, mod = divmod(cont,2)
-               if mod : tmp = tmp + '| '
-               else : tmp = tmp + '|*'
-       else :
-           tmp = tmp + '|' + j
-           cont = cont + 1
+        if j>='0' and j <= '9':
+            for k in range(int(j)):
+                cont = cont + 1
+                x, mod = divmod(cont,2)
+                if mod : tmp = tmp + '| '
+                else : tmp = tmp + '|*'
+        else :
+            tmp = tmp + '|' + j
+            cont = cont + 1
 
     row = 8 - i
     print margin, row, tmp+"|"
index 36b528c8d3601fe73a9e5aa69f9773660fbf0d97..86543d00c93b8ee9bb66e556336b1f220c6f8b0e 100644 (file)
@@ -41,6 +41,8 @@ What's new
 - We no longer attempt to convert images for which we cannot find an
   input format.
 
+- Fixed fen2ascii script.
+
 
 * LYX2LYX