summaryrefslogtreecommitdiff
path: root/sphinx/transforms.py
diff options
context:
space:
mode:
authorshimizukawa <shimizukawa@gmail.com>2013-09-17 12:10:42 +0000
committershimizukawa <shimizukawa@gmail.com>2013-09-17 12:10:42 +0000
commit76d8bb3619eb597a79f1a2d3bfc815719f55f3cc (patch)
tree4672900712153457919def41554b0813d13551c5 /sphinx/transforms.py
parentf4264a2abf5f988cd550222c359386e53d9fefbf (diff)
downloadsphinx-76d8bb3619eb597a79f1a2d3bfc815719f55f3cc.tar.gz
Ignoring the string consists only of white-space characters. Closes #1234
Diffstat (limited to 'sphinx/transforms.py')
-rw-r--r--sphinx/transforms.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/transforms.py b/sphinx/transforms.py
index 324df2ad..cf1040cf 100644
--- a/sphinx/transforms.py
+++ b/sphinx/transforms.py
@@ -181,7 +181,8 @@ class Locale(Transform):
for node, msg in extract_messages(self.document):
msgstr = catalog.gettext(msg)
# XXX add marker to untranslated parts
- if not msgstr or msgstr == msg: # as-of-yet untranslated
+ if not msgstr or msgstr == msg or not msgstr.strip():
+ # as-of-yet untranslated
continue
# Avoid "Literal block expected; none found." warnings.