Skip to content

Commit 4679c57

Browse files
committed
Fix comment newlines
1 parent ff8463c commit 4679c57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

betterproto/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def get_comment(proto_file, path: List[int]) -> str:
124124

125125
if path[-2] == 2 and path[-4] != 6:
126126
# This is a field
127-
return " # " + " # ".join(lines)
127+
return " # " + "\n # ".join(lines)
128128
else:
129129
# This is a message, enum, service, or method
130130
if len(lines) == 1 and len(lines[0]) < 70:

0 commit comments

Comments
 (0)