sphinx-contrib / matlabdomain

A Sphinx extension for documenting Matlab code
Other
64 stars 45 forks source link

bug in auto-linking literal block detection #240

Closed rdzman closed 6 months ago

rdzman commented 6 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.