summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2022-09-07 12:08:48 +0200
committerLubomir Rintel <lkundrak@v3.sk>2022-09-07 12:10:21 +0200
commit8af1404e54fea5bb038afd6d3e662540f9bda19f (patch)
treecf22483b1c012f1705f960ed0340d05b5eb73c7b
parentd3ffd2f90a9124f56a5173e643f002e0778854b6 (diff)
generate-docs-nm-settings-docs-gir: remove space from the beginning of a paralr/docs-deprec-props
From nm-settings-dbus(5): Before (ugly, offensive, possibly in violation of geneva protocol): ... | set, the authentication retries for 3 | times before failing the connection. | | Currently, this only applies to 802-1x | authentication. After (beautiful, smells good, in harmony with nature): ... | set, the authentication retries for 3 | times before failing the connection. | | Currently, this only applies to 802-1x | authentication.
-rwxr-xr-xtools/generate-docs-nm-settings-docs-gir.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/generate-docs-nm-settings-docs-gir.py b/tools/generate-docs-nm-settings-docs-gir.py
index 0024c13e73..88b87a7233 100755
--- a/tools/generate-docs-nm-settings-docs-gir.py
+++ b/tools/generate-docs-nm-settings-docs-gir.py
@@ -130,11 +130,11 @@ def format_docs(doc_xml):
doc = ""
for l in lines:
if l:
- doc += " " + l
+ doc += l + " "
else:
- doc += "\n\n"
+ doc = doc.strip(" ") + "\n\n"
- doc = doc.strip("\n")
+ doc = doc.strip("\n ")
# Expand constants
doc = re.sub(r"%([^%]\w*)", lambda match: constants[match.group(1)], doc)