diff options
-rw-r--r-- | pygments/formatters/rtf.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pygments/formatters/rtf.py b/pygments/formatters/rtf.py index 041865ca..b6a60df3 100644 --- a/pygments/formatters/rtf.py +++ b/pygments/formatters/rtf.py @@ -97,8 +97,7 @@ class RtfFormatter(Formatter): # http://www.unicode.org/book/ch03.pdf h = ((cn - 0x10000) / 0x400) + 0xD800 l = ((cn - 0x10000) % 0x400) + 0xDC00 - buf.append(r'{\u%d}' % h) - buf.append(r'{\u%d}' % l) + buf.append(r'{\u%d}{\u%d}' % (h,l)) return ''.join(buf).replace('\n', '\\par\n') |