Rewrap icon indicating copy to clipboard operation
Rewrap copied to clipboard

Python top triple-quote comment split inserts extraneous triple-quote

Open mikefrandsen opened this issue 3 years ago • 1 comments

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. """

mikefrandsen avatar Sep 28 '22 23:09 mikefrandsen

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."""

biblicabeebli avatar Aug 23 '23 22:08 biblicabeebli