Pull requests

#190 Merged
Repository
birkenfeld/sphinx sphinx
Branch
default

I18n does not always extract figure captions for figures nested inside other blocks

Author
  1. Michael Schlenker
Reviewers
Description

In some cases, the caption of a figure does not get extracted (using docutils 0.9.1), even though the extract_messages fix to set node.source is in place. This happens, because node.parent.source is also None, so the fix currently present does not work as expected.

This patch adds recursive ascent to find the node.source for captions, rubric etc.

Comments (3)