From c2c7b7368876da83f12598d523f936317c0b7a2b Mon Sep 17 00:00:00 2001 From: pkali Date: Wed, 25 Jun 2025 09:58:56 -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 928cf98..77ca623 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['Width'] * 2 # 2 hex chars per byte + 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