mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-12 16:32:10 -05:00
Ignoring the string consists only of white-space characters. Closes #1234
This commit is contained in:
1 parent
1ca7b1c713
commit
94fd97c6f3
2 files changed
+3
-1
No files matched your search
@@ -68,6 +68,7 @@ Bugs fixed
|
|||||||
* #1259: Guard the debug output call when emitting events; to prevent the
|
* #1259: Guard the debug output call when emitting events; to prevent the
|
||||||
repr() implementation of arbitrary objects causing build failures.
|
repr() implementation of arbitrary objects causing build failures.
|
||||||
* #1142: Fix NFC/NFD normalizing problem of rst filename on Mac OS X.
|
* #1142: Fix NFC/NFD normalizing problem of rst filename on Mac OS X.
|
||||||
|
* #1234: Ignoring the string consists only of white-space characters.
|
||||||
|
|
||||||
|
|
||||||
Release 1.2 beta1 (released Mar 31, 2013)
|
Release 1.2 beta1 (released Mar 31, 2013)
|
||||||
|
|||||||
@@ -181,7 +181,8 @@ class Locale(Transform):
|
|||||||
for node, msg in extract_messages(self.document):
|
for node, msg in extract_messages(self.document):
|
||||||
msgstr = catalog.gettext(msg)
|
msgstr = catalog.gettext(msg)
|
||||||
# XXX add marker to untranslated parts
|
# 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
|
continue
|
||||||
|
|
||||||
# Avoid "Literal block expected; none found." warnings.
|
# Avoid "Literal block expected; none found." warnings.
|
||||||
|
|||||||
Reference in new issue
Block a user