From: Ɓukasz Langa Date: Tue, 25 Aug 2020 20:26:13 +0000 (+0200) Subject: Improve docstring re-indentation handling X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/9270a10f6f59f069eb14ffba0c75f58e5895b27c?ds=inline;hp=9270a10f6f59f069eb14ffba0c75f58e5895b27c Improve docstring re-indentation handling This addresses a few crashers, namely: * producing non-equivalent code due to mangling escaped newlines, * invalid hugging quote characters in the docstring body to the docstring outer triple quotes (causing a quadruple quote which is a syntax error), * lack of handling for docstrings that start on the same line as the `def`, and * invalid stripping of outer triple quotes when the docstring contained a string prefix. As a bonus, tests now also run when string normalization is disabled. ---