SublimeAutoDocstring icon indicating copy to clipboard operation
SublimeAutoDocstring copied to clipboard

limit line length of docs

Open bitworm opened this issue 7 years ago • 1 comments

Does this package include functionality to limit max char length of docs to 72/line, a la pep 257?

bitworm avatar Aug 03 '18 00:08 bitworm

It does not, but this sounds useful. The only thing that might be prickly for adding this feature is the question: what indentation should lines get when they are split? I'm imagining a docstring like this:

def func(var1):
"""
Args:
    var1 (int): some description that is > 72 characters
"""

which should get an extra indentation level if split...

def func(var1):
"""
Args:
    var1 (int): some description that
        is > 72 characters
"""

KristoforMaynard avatar Aug 24 '18 22:08 KristoforMaynard