def parse_emotes(text, include_table_tags=True): '''Parses emotes in text string, returning a html string laid out using a table, to vertically align emotes correctly''' text = MarkupParser.replace_emotes(text) parser = MyHTMLParser(include_table_tags) parser.feed(text) text2 = parser.get_data() return text2
def append(self, text, cedict, cepath, scroll=True): """append formatted text to the widget""" if self.config.b_show_emoticons: text = MarkupParser.replace_emotes(text, cedict, cepath) # Parse links text = MarkupParser.urlify(text) TextBox.append(self, text, scroll)
def append(self, text, cedict, scroll=True): '''append formatted text to the widget''' if self.config.b_show_emoticons: text = MarkupParser.replace_emotes(text, cedict) #Parse links text = MarkupParser.urlify(text) TextBox.append(self, text, scroll)