sphinx-contrib / spelling

A spelling checker for Sphinx-based documentation
https://sphinxcontrib-spelling.readthedocs.io/en/latest/
BSD 2-Clause "Simplified" License
82 stars 48 forks source link

Use correct line for misspelled word #159

Closed pgerell closed 2 years ago

pgerell commented 2 years ago

Instead of the line number of the line containing the misspelled word, the line number of the first line of the docutils.Node element is used.

The the line number should be offset by the number of new-lines preceding the world in the node text.