We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51ec903 commit 995d156Copy full SHA for 995d156
.generator/src/generator/formatter.py
@@ -70,7 +70,7 @@ def is_primitive(schema):
70
71
72
def block_comment(comment, prefix="///", first_line=True):
73
- comment = re.sub(r"(\w+://[^\s\(\)]+)", r"<\1>", comment)
+ comment = re.sub(r"(\w+://[^\s\(\)]+)", r"<\1>", comment or "")
74
lines = comment.split("\n")
75
start = "" if first_line else lines[0] + "\n"
76
return (start + "\n".join(f"{prefix} {line}".rstrip() for line in lines[(0 if first_line else 1) :])).rstrip()
0 commit comments