sublime_docblockr_python icon indicating copy to clipboard operation
sublime_docblockr_python copied to clipboard

Creates docstrings with whitespaces in numpty

Open P1llus opened this issue 6 years ago • 2 comments

When creating docstrings from scratch using """ + enter under a function for example, the docstring created has whitespaces between [summary] and [description] and [description] and Returns, any way i can fix that?

image

P1llus avatar Jun 24 '18 08:06 P1llus

I'll have to check in with sublime's snippet support. as far as I know when putting multiple lines in the snippet template effectively performs a return at that indentation, leaving behind that trailing whitespace. To help mitigate, I would recommend a plugin to trim trailing whitespace, but obviously that is not the ideal solution.

adambullmer avatar Jun 25 '18 15:06 adambullmer

@adambullmer Though a bit older, i think this kinda tries to go past that, a bit hacky but still: https://github.com/socsieng/sublime-copy-code-snippet/blob/master/copy_code/commands/copy_snippet_command.py

P1llus avatar Jun 29 '18 16:06 P1llus