Skip to content

Commit dbfabcc

Browse files
Seluj78tk0miya
andauthored
Fixed linenumber missing when audit hook has an error (GH-24692)
See sphinx-doc/sphinx#8932 Co-authored-by: tk0miya <i.tkomiya@gmail.com>
1 parent 7c25508 commit dbfabcc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Doc/tools/extensions/pyspecific.py

+1
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ def run(self):
224224
info['source'].append((env.docname, target))
225225

226226
pnode = nodes.paragraph(text, classes=["audit-hook"], ids=ids)
227+
pnode.line = self.lineno
227228
if self.content:
228229
self.state.nested_parse(self.content, self.content_offset, pnode)
229230
else:

0 commit comments

Comments
 (0)