Browse Source

fix(umooc_simulator): add table into reply consideration

umooc-client
kdxcxs 4 years ago
parent
commit
10f59c120d
  1. 3
      umooc/umooc_client.py

3
umooc/umooc_client.py

@ -81,6 +81,9 @@ class TopicPage(object):
elif content.name == 'p': elif content.name == 'p':
contents.append( contents.append(
{'type': 'text', 'content': emoji_re.sub('[emoji]', content.text.replace('\xa0 ', ''))}) {'type': 'text', 'content': emoji_re.sub('[emoji]', content.text.replace('\xa0 ', ''))})
elif content.name == 'table':
# TODO: support tables
contents.append({'type': 'table', 'content': content.__str__()})
else: # pure text else: # pure text
contents.append({'type': 'text', 'content': emoji_re.sub('[emoji]', content.string)}) contents.append({'type': 'text', 'content': emoji_re.sub('[emoji]', content.string)})
self.replies.append( self.replies.append(

Loading…
Cancel
Save