on map only files the first line is no longer skipped...

...when converting the maps. esr could you review the patch, Soliton
tested it and seems to work.
This commit is contained in:
Mark de Wever 2007-05-27 16:19:33 +00:00
parent 13ffb08c9c
commit a106067a84

View file

@ -440,10 +440,11 @@ def translator(filename, mapxforms, textxform):
newdata = []
lineno = baseline = 0
while mfile:
line = mfile.pop(0)
if verbose >= 3:
sys.stdout.write(line + terminator)
lineno += 1
if not map_only:
line = mfile.pop(0)
if verbose >= 3:
sys.stdout.write(line + terminator)
lineno += 1
# Exclude map_data= lines that are just 1 line without
# continuation, or which contain {}. The former are
# pathological and the parse won't handle them, the latter