This commit is contained in:
Kovid Goyal 2010-06-13 12:46:29 -06:00
parent a8c93b87c7
commit 320522b5c9

View File

@ -95,6 +95,7 @@ def render_rows(data):
txt = txt.decode(preferred_encoding, 'replace') txt = txt.decode(preferred_encoding, 'replace')
if '</font>' not in txt: if '</font>' not in txt:
txt = prepare_string_for_xml(txt) txt = prepare_string_for_xml(txt)
if 'id' in data:
if key == _('Path'): if key == _('Path'):
txt = '...'+os.sep+os.sep.join(txt.split(os.sep)[-2:]) txt = '...'+os.sep+os.sep.join(txt.split(os.sep)[-2:])
txt = u'<a href="path:%s">%s</a>'%(data['id'], txt) txt = u'<a href="path:%s">%s</a>'%(data['id'], txt)