sphinx-contrib / matlabdomain

A Sphinx extension for documenting Matlab code
http://sphinxcontrib-matlabdomain.readthedocs.io/
Other
70 stars 45 forks source link

End of docstring #42

Closed joeced closed 6 years ago

joeced commented 9 years ago

Originally reported by: Sandor Toth (Bitbucket: tothsa, GitHub: Unknown)


In Matlab the docstring ends at the first line without % symbol. For example:

#!Matlab

function testfun(a,b)
% this is the docstring
% this is still docstring

% this is code comment
return a+b

However using sphinxcontrib-matlabdomain with autodoc, the last comment is also added to the docstring.