avoided quoting of "N of x" and "a to b".

This commit is contained in:
Philip Eisenlohr 2016-05-17 11:29:31 -04:00
parent 12affbd240
commit a7c15b4c00
1 changed files with 6 additions and 6 deletions

View File

@ -91,11 +91,11 @@ for name in filenames:
if type == '': if type == '':
table.data = [] table.data = []
elif type == '.': elif type == '.':
table.data = [str(former)] table.data = [former]
elif type == 'to': elif type == 'to':
table.data = ['{0} to {1}'.format(former-reps+1,former)] table.data = [former-reps+1,'to',former]
elif type == 'of': elif type == 'of':
table.data = ['{0} of {1}'.format(reps,former)] table.data = [reps,'of',former]
outputAlive = table.data_write(delimiter = ' ') # output processed line outputAlive = table.data_write(delimiter = ' ') # output processed line
@ -106,9 +106,9 @@ for name in filenames:
former = current former = current
table.data = { table.data = {
'.' : [str(former)], '.' : [former],
'to': ['%i to %i'%(former-reps+1,former)], 'to': [former-reps+1,'to',former],
'of': ['%i of %i'%(reps,former)], 'of': [reps,'of',former],
}[type] }[type]
outputAlive = table.data_write(delimiter = ' ') # output processed line outputAlive = table.data_write(delimiter = ' ') # output processed line