summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshibu <yoshiki@shibu.jp>2010-10-28 09:34:47 +0900
committershibu <yoshiki@shibu.jp>2010-10-28 09:34:47 +0900
commitfdf0755fcb251ac1e6d4b6ead86266286138f611 (patch)
tree90e50c38f67d77d7a7cf3adf43535cb52351dd0e
parent68cc7ce06510875d550efc5b342857b98883d29a (diff)
downloadsphinx-fdf0755fcb251ac1e6d4b6ead86266286138f611.tar.gz
skip literal_block
-rw-r--r--sphinx/builders/gettext.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sphinx/builders/gettext.py b/sphinx/builders/gettext.py
index cc86dd71..89703e72 100644
--- a/sphinx/builders/gettext.py
+++ b/sphinx/builders/gettext.py
@@ -69,6 +69,8 @@ class I18nBuilder(Builder):
for node, msg in extract_messages(doctree):
if not node.source:
continue # built-in message
+ if isinstance(node, nodes.literal_block):
+ continue
if not msg in catalog:
catalog[msg] = []
catalog[msg].append((node.source, node.line, node.uid))