mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #613: Allow Unicode characters in production list token names.
This commit is contained in:
2
CHANGES
2
CHANGES
@@ -1,6 +1,8 @@
|
||||
Release 1.0.8 (Sep 22, 2011)
|
||||
============================
|
||||
|
||||
* #613: Allow Unicode characters in production list token names.
|
||||
|
||||
* #720: Add dummy visitors for graphviz nodes for text and man.
|
||||
|
||||
* #704: Fix image file duplication bug.
|
||||
|
||||
@@ -257,7 +257,7 @@ class Glossary(Directive):
|
||||
return [node]
|
||||
|
||||
|
||||
token_re = re.compile('`([a-z_][a-z0-9_]*)`')
|
||||
token_re = re.compile('`(\w+)`', re.U)
|
||||
|
||||
def token_xrefs(text):
|
||||
retnodes = []
|
||||
|
||||
@@ -272,7 +272,8 @@ class LaTeXTranslator(nodes.NodeVisitor):
|
||||
return '\\autopageref*{%s}' % self.idescape(id)
|
||||
|
||||
def idescape(self, id):
|
||||
return str(unicode(id).translate(tex_replace_map))
|
||||
return unicode(id).translate(tex_replace_map).\
|
||||
encode('ascii', 'backslashreplace').replace('\\', '_')
|
||||
|
||||
def generate_indices(self):
|
||||
def generate(content, collapsed):
|
||||
|
||||
Reference in New Issue
Block a user