Fixing offsets in hexdump output

This commit is contained in:
John Donaldson 2019-07-10 23:33:45 +01:00 committed by Donaldson
parent dab09db585
commit eb19015aca
1 changed files with 1 additions and 0 deletions

View File

@ -235,6 +235,7 @@ class Puzzle:
self.body.write('<pre>')
for hexes, chars in out:
if chars == lastchars:
offset += len(chars)
if not elided:
self.body.write('*\n')
elided = True