Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/betterproto2_compiler/plugin/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,10 @@ def get_comment(
# We don't add this space to the generated file.
lines = [line[1:] if line and line[0] == " " else line for line in lines]

return "\n".join(lines)
return "\n".join(lines).replace("\\","\\\\")

return ""


@dataclass(kw_only=True)
class ProtoContentBase:
"""Methods common to MessageCompiler, ServiceCompiler and ServiceMethodCompiler."""
Expand Down
Loading