module documentation
Utilities for docstring processing.
Function | prepare |
Extract documentation comment lines (starting with #:) and return them as a list of lines. Returns an empty list if there is no documentation. |
Function | prepare |
Convert a docstring into lines of parseable reST. Remove common leading indentation, where the indentation of the first line is ignored. |
Function | separate |
Separate docstring into metadata and others. |
Variable | field |
Undocumented |
Convert a docstring into lines of parseable reST. Remove common leading indentation, where the indentation of the first line is ignored. Return the docstring as a list of lines usable for inserting into a docutils ViewList (used as argument of nested_parse().) An empty line is added to act as a separator between this docstring and following content.
Parameters | |
s:str | Undocumented |
tabsize:int | Undocumented |
Returns | |
list[ | Undocumented |