google / google/yapf

A knob to turn on string splitting

Open
#408 9 comments 59 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
14k
Forks
904
PR merge metrics
No merged PRs in 30d

Description

It would be nice to have a knob for turning this:

mystr = "A really long string that is going to go over the character limit, but as I'm writing this I forget to create a line break"

into this:

mystr = "A really long string that is going to go over the" \
" character limit, but as I'm writing this I forget " \
"to create a line break"

Especially when the string is surrounded by brackets. These two are semantically equivalent (with the backslash), and the second is much nicer.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.