Skip to content

Commit ff887f3

Browse files
Fixed linenumber missing when audit hook has an error (GH-24692)
See sphinx-doc/sphinx#8932 Co-authored-by: tk0miya <i.tkomiya@gmail.com> (cherry picked from commit dbfabcc) Co-authored-by: Jules Lasne <jules.lasne@gmail.com>
1 parent 4f9eb3f commit ff887f3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Doc/tools/extensions/pyspecific.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ def run(self):
191191
info['source'].append((env.docname, target))
192192

193193
pnode = nodes.paragraph(text, classes=["audit-hook"], ids=ids)
194+
pnode.line = self.lineno
194195
if self.content:
195196
self.state.nested_parse(self.content, self.content_offset, pnode)
196197
else:

0 commit comments

Comments
 (0)