In lbs-util, squeeze out extra blank lines in the output of the
read-metadata command. Extra blank lines may appear in the input,
particularly when delta-encoding metadata logs, but to produce
uniform-looking outputs, delete these extra blank lines.
d = lbs.parse_full(store.load_snapshot(snapshot))
check_version(d['Format'])
metadata = lbs.read_metadata(store, d['Root'])
+ blank = True
for l in metadata:
+ if l == '\n':
+ if blank: continue
+ blank = True
+ else:
+ blank = False
sys.stdout.write(l)
store.cleanup()