Skip to content

Line wrapping of strings while typing #55

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

Closed
languitar opened this issue Aug 18, 2016 · 1 comment
Closed

Line wrapping of strings while typing #55

languitar opened this issue Aug 18, 2016 · 1 comment
Labels

Comments

@languitar
Copy link

I am not sure whether this is an issue this plugin should solve or whether the vim python rules are the origin of the issue.

When writing long strings in single or double quotes which go beyond textwidth, the string is automatically wrapped to a new line but without correct quoting rules, resulting in a broken python file. E.g. the following could be a result:

foo.method('A long string which wraps after this
           and continues without new quotes')

Would be nice if this case could be handles so that the following is the result:

foo.method('A long string which wraps after this '
           'and continues without new quotes')
@blueyed
Copy link
Member

blueyed commented Sep 2, 2016

I think you should not set the 'wrap' option for coding filetypes.
It makes sense with text filetypes (including "eml"), but not for coding.

Anyway, automatically adding quotes is out of scope for vim-python-pep8-indent.

@blueyed blueyed closed this as completed Sep 2, 2016
@blueyed blueyed added the wontfix label Sep 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants