From: Richard Si <63936253+ichard26@users.noreply.github.com> Date: Thu, 14 Jul 2022 23:47:33 +0000 (-0400) Subject: Actually disable docstring prefix normalization with -S + fix instability (#3168) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/ad5c315ddad26a3c41f22d3b73c493fb7d7b86b8?ds=sidebyside;hp=ad5c315ddad26a3c41f22d3b73c493fb7d7b86b8 Actually disable docstring prefix normalization with -S + fix instability (#3168) The former was a regression I introduced a long time ago. To avoid changing the stable style too much, the regression is only fixed if --preview is enabled Annoyingly enough, as we currently always enforce a second format pass if changes were made, there's no good way to prove the existence of the docstring quote normalization instability issue. For posterity, here's one failing example: --- source +++ first pass @@ -1,7 +1,7 @@ def some_function(self): - '''' + """ ' - ''' + """ pass --- first pass +++ second pass @@ -1,7 +1,7 @@ def some_function(self): - """ ' + """' """ pass Co-authored-by: Jelle Zijlstra ---