summaryrefslogtreecommitdiff
path: root/tools/generate-docs-nm-property-infos.py
diff options
context:
space:
mode:
authorWen Liang <liangwen12year@gmail.com>2021-05-16 10:49:54 -0400
committerThomas Haller <thaller@redhat.com>2021-05-17 23:28:56 +0200
commit90422ddd1a88c52803d2247bb3b4646f0f7a3b3a (patch)
treeadd72dd47a12a5140b14e4123c7dcd734c81fa6d /tools/generate-docs-nm-property-infos.py
parente67ddd826fae1a348a7a253e9c37744c05645112 (diff)
downloadNetworkManager-90422ddd1a88c52803d2247bb3b4646f0f7a3b3a.tar.gz
Remove line breaks in attribute value of `nm-property-infos-*.xml`
Since line breaks are not needed for XML's attribute tag, remove the unnecessary line breaks. Signed-off-by: Wen Liang <liangwen12year@gmail.com>
Diffstat (limited to 'tools/generate-docs-nm-property-infos.py')
-rwxr-xr-xtools/generate-docs-nm-property-infos.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/generate-docs-nm-property-infos.py b/tools/generate-docs-nm-property-infos.py
index 90f757728e..fdcfc3c312 100755
--- a/tools/generate-docs-nm-property-infos.py
+++ b/tools/generate-docs-nm-property-infos.py
@@ -74,14 +74,14 @@ def process_data(data):
kwd_more_line_found = re.search(r"^\s*\**\s+(.*?)\s*$", line)
if kwd_first_line_found:
keyword = kwd_first_line_found.group(1)
- value = kwd_first_line_found.group(2) + "\n"
+ value = kwd_first_line_found.group(2) + " "
parsed_data[keyword] = escape_xml_char(value)
elif kwd_more_line_found:
if not keyword:
print("Extra mess in a comment: %s" % (line))
exit(1)
else:
- value = kwd_more_line_found.group(1) + "\n"
+ value = kwd_more_line_found.group(1) + " "
parsed_data[keyword] += escape_xml_char(value)
for keyword in keywords:
if keyword == "variable" and keyword not in parsed_data: