I am trying to write a docstring that follows Google's style guide such that it looks something like:
def testFunction(a, b):
"""
Args:
a (str):
b (str):
Returns:
Description of return
I am doing this through a yasnippet following the accepted answer to this question, and everything works except for the indentation of the "return description" because my emacs isn't allowing an indentation beyond the first level within the docstring using TAB. Using indent within a lisp function gives the correct indentation (under Args:), but using TAB within the buffer (or in the snippet) does not. As such my docstring looks like:
def testFunction(a, b):
"""
Args:
a (str):
b (str):
Returns:
Description of return
Any ideas to overcome the general problem of not being able to force another layer of indent within the docstring using TAB in python-mode?
I've tried making a barebones init.el to avoid loading anything that may create this behavior but still get the same issue. I am using emacs version 24.5.1, in case that provides any clues.