Closed SkyLeach closed 4 years ago
@SkyLeach Thx for reporting.
I can't reproduced. Please give me more information(steps to reproduce, OS, Vim version).
Windows 10 Home NeoVim v0.4.4
I don't think there are any special steps. I'm not using Cygwin or anything here, just Python 3.8 on windows with neovim.
@SkyLeach Works fine for me. Windows10(VirtualMachine), Vim8.2, Python3.7
This vim has vim-pydocstring only and no vimrc. So, I think this is your env's problem.
Please try minimum vimrc(Load only vim-pydocstring) and if same issue will raised, tell me.
check fileformat:
set ff
run
:PydocstringFormat
a very quick glance over the code makes me think that using '\n' (safe for posix) is the problem. Should be \r which should input whatever line ending CR should insert based on fileformat. I may be off, but that's my best guess.