From 45116c36091fac3ec729142516f0817925f5571f Mon Sep 17 00:00:00 2001 From: snake-biscuits <36507175+snake-biscuits@users.noreply.github.com> Date: Tue, 7 Nov 2023 22:12:03 +0000 Subject: [PATCH] remove keyvalue description if `.json` doesn't define it --- fuse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fuse.py b/fuse.py index f9c44ca..02d153e 100644 --- a/fuse.py +++ b/fuse.py @@ -59,7 +59,7 @@ def update_key(xml_key: ElementTree.Element, json_spec: dict): continue xml_key.set(attr, json_spec.get(attr, xml_key.get(attr))) # TODO: UX DESIGN QUESTION: do we expect pilot/*.json to html.escape() descriptions? - xml_key.text = json_spec.get("description", xml_key.text) + xml_key.text = json_spec.get("description", "") def new_spawnflag(json_spec: dict) -> ElementTree.Element: