From d7ecdedd6735dd85f8a1f2b33350addd195124c4 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Sat, 30 Jul 2016 23:17:30 -0400 Subject: [PATCH] Fix indentation of fen2ascii script so it will run. (cherry picked from commit 22e1063cb9b6bd84e6c1d3adf24b3d93a06b90bb) --- lib/scripts/fen2ascii.py | 18 +++++++++--------- status.22x | 2 ++ 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/lib/scripts/fen2ascii.py b/lib/scripts/fen2ascii.py index 473515ccc7..212dae4f3f 100644 --- a/lib/scripts/fen2ascii.py +++ b/lib/scripts/fen2ascii.py @@ -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+"|" diff --git a/status.22x b/status.22x index 36b528c8d3..86543d00c9 100644 --- a/status.22x +++ b/status.22x @@ -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