From 82b2a55c583f413874336725251aab746178f699 Mon Sep 17 00:00:00 2001 From: 4am Date: Thu, 9 Jan 2025 14:07:51 -0500 Subject: [PATCH] managed to create a regression with whitespace --- bin/packhgrfile.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/bin/packhgrfile.py b/bin/packhgrfile.py index b2bb3107b..a841de930 100755 --- a/bin/packhgrfile.py +++ b/bin/packhgrfile.py @@ -17,11 +17,10 @@ if(len(filedata) >= 8192 and filedata[8189] == 0x4c): outdata = bytearray(filedata[0:8192]) else: outdata = bytearray(filedata[0:7680]) - -for h in range(60): - oh = h*128+120 - ih = h*8+7680+(int(h/15)*8) - outdata[oh:oh+8] = filedata[ih:ih+8] + for h in range(60): + oh = h*128+120 + ih = h*8+7680+(int(h/15)*8) + outdata[oh:oh+8] = filedata[ih:ih+8] with open(outfile,"wb") as o: o.write(outdata)