MARKMIN('<unicode>')

This commit is contained in:
mdipierro
2013-04-08 21:45:19 -05:00
parent be021db3d3
commit 0f691f2757
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.4.6-stable+timestamp.2013.04.08.21.41.34
Version 2.4.6-stable+timestamp.2013.04.08.21.44.29
+2
View File
@@ -859,6 +859,8 @@ def render(text,
if autolinks=="default": autolinks = autolinks_simple
if protolinks=="default": protolinks = protolinks_simple
pp='\n' if pretty_print else ''
if isinstance(text,unicode):
text = text.encode('utf8')
text = str(text or '')
text = regex_backslash.sub(lambda m: m.group(1).translate(ttab_in), text)
text = text.replace('\x05','') # concatenate strings separeted by \\n