Rewrap
Rewrap copied to clipboard
Python top triple-quote comment split inserts extraneous triple-quote
Rewrap v1.16.3 VS Code 1.71.2
For Python comment like: """This line is longer than the max
etc. etc. """
The split line has """ prepended which ends the comment: """This line is longer """than the max
etc. etc. """
Should be: """This line is longer than the max
etc. etc. """
This issue has been around for the entire time I've used this extension, here is another example:
(100 character line length limit)
class something_anything:
def function_name():
# block comment containing gibberish with varying spacing:
""" blah blahblah blah blah Blah blah blahbla hbla blah bla blah blah blah blah blahblahblahblahe blah blah blah
blah bla blah blah blah blah blahblahblahblahe blah blah blah blah blah blah blahblahblahb
blah blah blah blahblahblahblahe."""
rewraps to:
class something_anything:
def function_name():
# block comment containing gibberish with varying spacing:
""" blah blahblah blah blah Blah blah blahbla hbla blah bla blah blah blah blah
""" blahblahblahblahe blah blah blah
blah bla blah blah blah blah blahblahblahblahe blah blah blah blah blah blah blahblahblahb
blah blah blah blahblahblahblahe."""