From 4679c571c30ef919f07f54008d83afcd75073bdc Mon Sep 17 00:00:00 2001 From: "Daniel G. Taylor" Date: Fri, 25 Oct 2019 12:28:26 -0700 Subject: [PATCH] Fix comment newlines --- betterproto/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/betterproto/plugin.py b/betterproto/plugin.py index 2865138..7795623 100755 --- a/betterproto/plugin.py +++ b/betterproto/plugin.py @@ -124,7 +124,7 @@ def get_comment(proto_file, path: List[int]) -> str: if path[-2] == 2 and path[-4] != 6: # This is a field - return " # " + " # ".join(lines) + return " # " + "\n # ".join(lines) else: # This is a message, enum, service, or method if len(lines) == 1 and len(lines[0]) < 70: