Skip to content

Commit

Permalink
Fix handling of newlines and quotes in pydocs
Browse files Browse the repository at this point in the history
  • Loading branch information
ideoforms committed Oct 21, 2024
1 parent e47a02e commit 8d4c55e
Show file tree
Hide file tree
Showing 2 changed files with 141 additions and 138 deletions.
5 changes: 4 additions & 1 deletion auxiliary/scripts/auto-generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,10 @@ def extract_docs(doxygen: str) -> str:
if re.search(r"^\s*/\*", line) or re.search(r"\*/\s*$", line):
continue
line = re.sub(r"^\s*\*\s*", "", line)
output = output + line + " "

# Escape quote marks to avoid breaking auto-generated pydocs
line = re.sub('"', '\\"', line)
output = output + line + "\\n"
return output.strip()


Expand Down
Loading

0 comments on commit 8d4c55e

Please sign in to comment.