From d200304b35480f23919868ac47a39aa973818fcf Mon Sep 17 00:00:00 2001 From: pkali Date: Wed, 25 Jun 2025 10:00:44 -0400 Subject: [PATCH] ex.py if no Width then 40 --- art/ex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/art/ex.py b/art/ex.py index 77ca623..1dd746c 100644 --- a/art/ex.py +++ b/art/ex.py @@ -14,7 +14,7 @@ def write_asm(atrview, out, page, line_from, line_to, skip_left, skip_right): for p in s['Pages']: if (isinstance(page, int) and p['Nr'] == page) or (isinstance(page, str) and p['Name'] == page): dta = p['View'] - width = p.get(['Width'], 40) * 2 # 2 hex chars per byte or 40 + width = p.get('Width', 40) * 2 # 2 hex chars per byte or 40 dtas = [dta[i * width:(i + 1) * width] for i in range(len(dta) // width)] break