diff options
author | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2017-11-04 10:21:10 +0000 |
---|---|---|
committer | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2017-11-04 10:21:10 +0000 |
commit | 72884398549b1f4796b48ef8718657eb6685deb9 (patch) | |
tree | 95157b1b516f50fef1be85b233b7e54e3a8ee9b3 /docutils | |
parent | 81707e0b3a98bd9c483f1f1c54812f8bf68f2c58 (diff) | |
download | docutils-72884398549b1f4796b48ef8718657eb6685deb9.tar.gz |
Ensure `rawsource` in "unicode" directive.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8196 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils')
-rw-r--r-- | docutils/docutils/parsers/rst/directives/misc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docutils/docutils/parsers/rst/directives/misc.py b/docutils/docutils/parsers/rst/directives/misc.py index c8048057e..c9a069c2d 100644 --- a/docutils/docutils/parsers/rst/directives/misc.py +++ b/docutils/docutils/parsers/rst/directives/misc.py @@ -320,7 +320,7 @@ class Unicode(Directive): except ValueError, error: raise self.error(u'Invalid character code: %s\n%s' % (code, ErrorString(error))) - element += nodes.Text(decoded) + element += nodes.Text(utils.unescape_rawsource(decoded), decoded) return element.children |