mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
[i18n][man] add missing deunicode().
We get the following error message when we have a translated admonition (e.g. 'note') label: Exception occurred: File "../sphinx/sphinx/locale/__init__.py", line 75, in __str__ return str(self.data) UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-2: ordinal not in range(128)
This commit is contained in:
parent
6da34ddd39
commit
102b3bf925
@ -197,7 +197,7 @@ class ManualPageTranslator(BaseTranslator):
|
||||
def visit_admonition(self, node, name=None):
|
||||
if name:
|
||||
self.body.append('.IP %s\n' %
|
||||
admonitionlabels.get(name, name))
|
||||
self.deunicode(admonitionlabels.get(name, name)))
|
||||
|
||||
def visit_productionlist(self, node):
|
||||
self.ensure_eol()
|
||||
|
Loading…
Reference in New Issue
Block a user