Fix comment newlines

This commit is contained in:
Daniel G. Taylor 2019-10-25 12:28:26 -07:00
parent ff8463cf12
commit 4679c571c3
No known key found for this signature in database
GPG Key ID: 7BD6DC99C9A87E22

View File

@ -124,7 +124,7 @@ def get_comment(proto_file, path: List[int]) -> str:
if path[-2] == 2 and path[-4] != 6: if path[-2] == 2 and path[-4] != 6:
# This is a field # This is a field
return " # " + " # ".join(lines) return " # " + "\n # ".join(lines)
else: else:
# This is a message, enum, service, or method # This is a message, enum, service, or method
if len(lines) == 1 and len(lines[0]) < 70: if len(lines) == 1 and len(lines[0]) < 70: