Skip to content

Don't remove trailing whitespace when part of a string #220

@anonymousgrasshopper

Description

@anonymousgrasshopper

Thanks for your work !
Let's say I have a multiline string with trailing whitespace at the end of lines:

local str = [[
blah             
                  
]]

The formatter will remove the trailing spaces, which is not a desirable behavior since it will change the actual contents of the string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions