From c1bebdfaa6994a053a0905c9348009ae5bc3de8c Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Tue, 4 Oct 2022 10:16:07 +0200 Subject: [PATCH] tools: don't set empty attributes in "generate-docs-nm-property-infos.py" If the information is missing, the entire attribute should not be there. Don't set it to the empty word. Also, don't alias the "variable" attribute to the "name". It's not clear what the "variable" fields is supposed to mean, but if it's not explicitly set, don't make up the information. If a user of that information cares, the can always fallback to the "name". --- tools/generate-docs-nm-property-infos.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tools/generate-docs-nm-property-infos.py b/tools/generate-docs-nm-property-infos.py index aab4208352..ce30100e49 100755 --- a/tools/generate-docs-nm-property-infos.py +++ b/tools/generate-docs-nm-property-infos.py @@ -132,12 +132,7 @@ def write_data(tag, setting_node, line_no, parsed_data): v = parsed_data.get(k, None) if v is None: - if k == "variable": - v = name - elif k == 'description-docbook': - continue - else: - v = "" + continue if xmltype == KEYWORD_XML_TYPE_NESTED: # Set as XML nodes. The input data is XML itself.