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

python-mode: fill does not auto-format strings #2456

Closed
gleber opened this issue Jul 29, 2015 · 4 comments
Closed

python-mode: fill does not auto-format strings #2456

gleber opened this issue Jul 29, 2015 · 4 comments
Labels
Enhancement ☺ Python stale marked as a stale issue/pr (usually by a bot)

Comments

@gleber
Copy link
Contributor

gleber commented Jul 29, 2015

For example:

a = 'very-very-very outrageously long string'

after hitting M-q on it, I'd like it to be formatted according to fill-column and look like, assuming fill-column is very small, this:

a = 'very-very-very '
    'outrageously '
    'long string'
@TheBB
Copy link
Contributor

TheBB commented Jul 29, 2015

I doubt we can help with that. Sounds like a feature request for python-mode. Seems to work fine with multiline strings, for the record.

I should also note that in your example, the 'after' code is illegal python syntax.

@gleber
Copy link
Contributor Author

gleber commented Jul 29, 2015

Good catch. I've used Prelude before and there it did something like that. It would allow me to write

a = ('a b c d e f g')

hit M-q and get

a = ('a b c d '
     'e f g')

@TheBB
Copy link
Contributor

TheBB commented Jul 29, 2015

Okay, then maybe we could figure out how they do it.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

@github-actions github-actions bot added the stale marked as a stale issue/pr (usually by a bot) label Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement ☺ Python stale marked as a stale issue/pr (usually by a bot)
Projects
None yet
Development

No branches or pull requests

3 participants