generate-docs-nm-settings-docs-gir: remove space from the beginning of a para
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.
This commit is contained in:
@@ -130,11 +130,11 @@ def format_docs(doc_xml):
|
|||||||
doc = ""
|
doc = ""
|
||||||
for l in lines:
|
for l in lines:
|
||||||
if l:
|
if l:
|
||||||
doc += " " + l
|
doc += l + " "
|
||||||
else:
|
else:
|
||||||
doc += "\n\n"
|
doc = doc.strip(" ") + "\n\n"
|
||||||
|
|
||||||
doc = doc.strip("\n")
|
doc = doc.strip("\n ")
|
||||||
|
|
||||||
# Expand constants
|
# Expand constants
|
||||||
doc = re.sub(r"%([^%]\w*)", lambda match: constants[match.group(1)], doc)
|
doc = re.sub(r"%([^%]\w*)", lambda match: constants[match.group(1)], doc)
|
||||||
|
Reference in New Issue
Block a user