sphinx-contrib / matlabdomain

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

bug in auto-linking literal block detection #240

Closed rdzman closed 9 months ago

rdzman commented 9 months ago

The code used to avoid auto-linking in literal blocks wrongly assumes that a literal block ends with any blank line. This results in wrongly auto-linking in lines in literal blocks following a blank line.

The correct check is for a non-indented line following a blank line.