Fixing Test.
This commit is contained in:
Awais Qureshi
2019-10-31 19:05:36 +05:00
parent 636037514c
commit 5f2ebf713f

View File

@@ -167,7 +167,7 @@ class ClarificationRenderer(object):
self.system = system
# Get any text content found inside this tag prior to the first child tag. It may be a string or None type.
initial_text = xml.text if xml.text else ''
self.inner_html = initial_text + ''.join(etree.tostring(element) for element in xml)
self.inner_html = initial_text + u''.join(etree.tostring(element, encoding='unicode') for element in xml)
self.tail = xml.tail
def get_html(self):