Skip to content

Commit

Permalink
[UR] Fix code-block documentation rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr Vesely committed Jul 3, 2023
1 parent 9081a1e commit 68c1f3c
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 68c1f3c

Please sign in to comment.