libnm/docs: fix documentation for "proxy.pac-script"

This commit is contained in:
Thomas Haller
2022-03-21 09:42:39 +01:00
parent 6b191d6ea7
commit aaf2155023
4 changed files with 23 additions and 7 deletions

View File

@@ -149,7 +149,13 @@ def get_docs(propxml):
doc = re.sub(r"#([A-Z]\w*)", r"\1", doc)
# Remove sentences that refer to functions
doc = re.sub(r"\.\s+[^.]*\w\(\)[^.]*\.", r".", doc)
if "FindProxyForURL()" in doc:
# FIXME: this would break the description for "proxy.pac-script"
# Work around. But really the entire approach here is flawed
# and needs improvement.
pass
else:
doc = re.sub(r"\.\s+[^.]*\w\(\)[^.]*\.", r".", doc)
return doc