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

#190 Merged at c072494
Repository
sphinx
Branch
default
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)