Skip to content

Commit

Permalink
Merge pull request #666 from veselypeta/petr/665/fix-doc-rendering
Browse files Browse the repository at this point in the history
[UR] Fix code-block documentation rendering
  • Loading branch information
veselypeta authored Jul 3, 2023
2 parents e6b3865 + 68c1f3c commit 25abfe6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/generate_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,11 @@ def _generate_valid_rst(fin, fout, namespace, tags, ver, rev, meta):
# If function is split across multiple lines
# then join lines until a ';' is encountered.
try:
line = line.strip()
line = line.rstrip()
while not line.endswith(';'):
_, n_line = next(iter)
line = line + n_line.strip()
line += '\n'
except StopIteration:
print(f"Function {line[:100]} was not terminated by a ';' character.")
error = True
Expand Down

0 comments on commit 25abfe6

Please sign in to comment.