comparison src/browser/libervia_main.py @ 505:f0b56c022c01

browser_side: use of new XHTML2Text method
author Goffi <goffi@goffi.org>
date Wed, 20 Aug 2014 20:59:15 +0200
parents 88ece2a00c63
children d58d4dd0cefe
comparison
equal deleted inserted replaced
504:f030491cff75 505:f0b56c022c01
691 try: 691 try:
692 assert(extra['subject']) # subject is defined and not empty 692 assert(extra['subject']) # subject is defined and not empty
693 title = extra['subject'] 693 title = extra['subject']
694 except (KeyError, AssertionError): 694 except (KeyError, AssertionError):
695 title = _('Announcement from %s') % from_jid 695 title = _('Announcement from %s') % from_jid
696 msg = strings.addURLToText(html_tools.convertNewLinesToXHTML(html_tools.html_sanitize(msg))) 696 msg = strings.addURLToText(html_tools.XHTML2Text(msg))
697 dialog.InfoDialog(title, msg).show() 697 dialog.InfoDialog(title, msg).show()
698 return 698 return
699 if lib_wid is not None: 699 if lib_wid is not None:
700 lib_wid.printMessage(_from, msg, extra) 700 lib_wid.printMessage(_from, msg, extra)
701 else: 701 else: