Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add \ when adding line breaks in strings in the middle of assignments #7002

Open
luabud opened this issue Mar 1, 2025 · 0 comments
Open
Assignees
Labels
enhancement New feature or request fixed in next version (main) A fix has been implemented and will appear in an upcoming version

Comments

@luabud
Copy link
Member

luabud commented Mar 1, 2025

Follow up to #6805.
Right now when we add a quotation mark when adding a line break in a long string, we break the code logic when it's around assignments or return statements.

For example:

a = "this is a long| message"  

If we add a line break on a, right now we are making a evaluate to "this is a long":

a = "this is a long"
 "message"  

I believe the ideal would be to do the following:

a = "this is a long" \
 "message"  

Similarly if this was in a return statement.

@luabud luabud assigned KacieKK and unassigned debonte Mar 1, 2025
@github-actions github-actions bot added the needs repro Issue has not been reproduced yet label Mar 1, 2025
@debonte debonte removed their assignment Mar 1, 2025
@debonte debonte added enhancement New feature or request and removed needs repro Issue has not been reproduced yet labels Mar 1, 2025
@judej judej assigned r-contreras and rchiodo and unassigned KacieKK and r-contreras Mar 3, 2025
@bschnurr bschnurr added the fixed in next version (main) A fix has been implemented and will appear in an upcoming version label Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fixed in next version (main) A fix has been implemented and will appear in an upcoming version
Projects
None yet
Development

No branches or pull requests

6 participants