]> git.madduck.net Git - etc/vim.git/commit

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Improve handling of multiline strings (#50)
authorDaniel Hahler <github@thequod.de>
Wed, 6 Jul 2016 09:17:48 +0000 (11:17 +0200)
committerHynek Schlawack <hs@ox.cx>
Wed, 6 Jul 2016 09:17:48 +0000 (11:17 +0200)
commit10228215c76da4004b5ac4b60cfdf94682ea6e22
tree8da3110d6ed8d361d422f794a6e2b17a52b30fc0
parent2c38ff0159249d9aff92ccde1cad9ee310a00a8d
Improve handling of multiline strings (#50)

* Improve handling of multiline strings

Fixes https://github.com/hynek/vim-python-pep8-indent/issues/49.

* tests: use an uneven width (3) instead of 8

This makes sure that the tests work as expected.

* tests: move helper functions to spec_helper.rb

* Add python_pep8_indent_for_multiline_string setting

Ref: https://github.com/hynek/vim-python-pep8-indent/issues/49#issuecomment-228581896

* Use indent directly if prevnonblank is known

This removes the now unused s:indent_prevnonblank function.
README.rst
indent/python.vim
spec/indent/indent_spec.rb
spec/spec_helper.rb