Skip to content

Commit

Permalink
bindgen(odin): Fix empty line leading whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderArvidsson committed Jan 7, 2025
1 parent ee787e2 commit 5b3f88b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindgen/gen_odin.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def c(s, indent=""):
return
if '\n' in s:
l(f'{indent}/*')
l(textwrap.indent(textwrap.dedent(s), prefix=f" {indent}", predicate=lambda line: True))
l(textwrap.indent(textwrap.dedent(s), prefix=f" {indent}"))
l(f'{indent}*/')
else:
l(f'{indent}// {s.strip()}')
Expand Down

0 comments on commit 5b3f88b

Please sign in to comment.