From 2d30d8b12432566d8f0afa946b358d99dfb735f6 Mon Sep 17 00:00:00 2001 From: Brian Read Date: Wed, 21 May 2025 17:30:59 +0100 Subject: [PATCH] Make generated table col name use underscore not hyphen --- sm1-html-2-json5.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sm1-html-2-json5.py b/sm1-html-2-json5.py index bc2341d..9cba830 100644 --- a/sm1-html-2-json5.py +++ b/sm1-html-2-json5.py @@ -273,7 +273,7 @@ def extract_data(html): ) if td: columns.append( - f"{table_control}-{th.get_text(strip=True)}" + f"{table_control}_{th.get_text(strip=True)}" ) # Format as desired records.append(