Gap removal

This commit is contained in:
Bob Mottram 2014-04-26 22:47:37 +01:00
parent dd005245f5
commit 81b6ca94a5

View File

@ -21,6 +21,13 @@ def jargonParseEntry(filename):
if i >= 2: if i >= 2:
text = text + line[i] text = text + line[i]
text = text.replace('\n',' ') text = text.replace('\n',' ')
# remove any gaps
pos = text.find(' ')
while pos != -1:
text = text.replace(' ',' ')
pos = text.find(' ')
entry.append(text.strip()) entry.append(text.strip())
return entry return entry