Ignore:
Timestamp:
02/13/13 10:46:19 (14 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Fixed scheme description text formating.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/preview/previewbrowser.py

    r11215 r11308  
    33 
    44""" 
     5 
     6from xml.sax.saxutils import escape 
    57 
    68from PyQt4.QtGui import ( 
     
    317319                description = "No description." 
    318320 
     321            description = escape(description) 
     322            description = description.replace("\n", "<br/>") 
     323 
    319324            name = unicode(index.data(Qt.DisplayRole).toString()) 
    320325            if not name: 
    321326                name = "Untitled" 
    322327 
     328            name = escape(name) 
    323329            path = unicode(index.data(Qt.StatusTipRole).toString()) 
    324330 
Note: See TracChangeset for help on using the changeset viewer.