mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 01:17:37 -02:30
fixes stoud formats unicode problem
This commit is contained in:
@@ -2,7 +2,7 @@ Local versions of third-party packages required by Tower. Package names and
|
|||||||
versions are listed below, along with notes on which files are included.
|
versions are listed below, along with notes on which files are included.
|
||||||
|
|
||||||
amqp==1.4.5 (amqp/*)
|
amqp==1.4.5 (amqp/*)
|
||||||
ansiconv==1.0.0 (ansiconv.py)
|
ansiconv==1.0.0 (ansiconv.py, small fix, generate unicode html)
|
||||||
anyjson==0.3.3 (anyjson/*)
|
anyjson==0.3.3 (anyjson/*)
|
||||||
apache-libcloud==0.15.1 (libcloud/*)
|
apache-libcloud==0.15.1 (libcloud/*)
|
||||||
argparse==1.2.1 (argparse.py, needed for Python 2.6 support)
|
argparse==1.2.1 (argparse.py, needed for Python 2.6 support)
|
||||||
|
|||||||
@@ -122,6 +122,7 @@ def _block_to_html(text):
|
|||||||
classes.append('ansi{0}'.format(code))
|
classes.append('ansi{0}'.format(code))
|
||||||
|
|
||||||
if classes:
|
if classes:
|
||||||
text = '<span class="{0}">{1}</span>'.format(' '.join(classes), text)
|
text = u'<span class="{0}">{1}</span>'.format(' '.join(classes), text)
|
||||||
|
|
||||||
return command, text
|
return command, text
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user