1/2 block: minor line optimation

This commit is contained in:
Gordon Shumway 2019-11-20 22:18:08 -05:00 committed by GitHub
parent a0d24eb3ad
commit 3c2a7acd95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1027,7 +1027,7 @@ class ASCII(callbacks.Plugin):
old_char = gsval
else:
old_char = '^^▀'
aimg[k] = re.sub("\x03\d\d,(\d\d\s+\x03)", "\x0301,\g<1>", aimg[k])
aimg[k] = re.sub("\x03\d\d,(\d\d\s+\x03)|\x03\d\d,(\d\d\s+)$", "\x0301,\g<1>", aimg[k])
aimg[k] = re.sub("\x0301,(\d\d)(\s+)\x03(\d\d)([^,])", "\x03\g<3>,\g<1>\g<2>\g<4>", aimg[k])
for i in range(0,98):
i = '%02d' % i