Skip to content

Commit

Permalink
Turn off doc-string line wrapping (#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
cartesian-theatrics authored Dec 16, 2023
1 parent d34b169 commit b8a091a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/betterproto/plugin/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,7 @@ def get_comment(
pad = " " * indent
for sci_loc in proto_file.source_code_info.location:
if list(sci_loc.path) == path and sci_loc.leading_comments:
lines = textwrap.wrap(
sci_loc.leading_comments.strip().replace("\n", ""), width=79 - indent
)

lines = sci_loc.leading_comments.strip().split("\n")
# This is a field, message, enum, service, or method
if len(lines) == 1 and len(lines[0]) < 79 - indent - 6:
lines[0] = lines[0].strip('"')
Expand Down

0 comments on commit b8a091a

Please sign in to comment.