1. mbrochh
  2. sphinx

Commits

Robert Lehmann  committed 5d3a4a0

Ignore orphan metadata field in translatable messages.

  • Participants
  • Parent commits 6e8163f
  • Branches default

Comments (0)

Files changed (1)

File sphinx/util/nodes.py

View file
  • Ignore whitespace
     for node in doctree.traverse(nodes.TextElement):
         if isinstance(node, (nodes.Invisible, nodes.Inline)):
             continue
+        # <field_name>orphan</field_name>
+        if isinstance(node, nodes.field_name) and node.children[0] == 'orphan':
+            continue
         msg = node.astext().replace('\n', ' ').strip()
         # XXX nodes rendering empty are likely a bug in sphinx.addnodes
         if msg: