mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
a8c93b87c7
commit
320522b5c9
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user