We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb52892 commit e9e3d9aCopy full SHA for e9e3d9a
src/sphinx_subfigure/main.py
@@ -79,7 +79,10 @@ def run(self) -> list[nodes.Element]:
79
elif isinstance(child, nodes.paragraph):
80
if has_caption:
81
raise self.error("Invalid subfigure content (multiple captions)")
82
- child.replace_self(nodes.caption(child.rawsource, *child.children))
+ caption = nodes.caption(child.rawsource, *child.children)
83
+ caption.source = child.source
84
+ caption.line = child.line
85
+ child.replace_self(caption)
86
has_caption = True
87
else:
88
raise self.error(
0 commit comments