From db7ad38a95381cc7cf2f3739acc745c7b4ab8f5a Mon Sep 17 00:00:00 2001 From: hut Date: Wed, 3 Dec 2014 22:03:07 +0100 Subject: ext.papermanager: don't transform pagerinfo.authors --- ranger/ext/papermanager.py | 2 +- ranger/gui/widgets/browsercolumn.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ranger/ext/papermanager.py b/ranger/ext/papermanager.py index 0a3e73ac..6c422659 100644 --- a/ranger/ext/papermanager.py +++ b/ranger/ext/papermanager.py @@ -80,5 +80,5 @@ class PaperManager(object): filename, year, title, authors, url = dataset if year: ostruct.year = year if title: ostruct.title = title - if authors: ostruct.authors = authors.split(",") + if authors: ostruct.authors = authors if url: ostruct.url = url diff --git a/ranger/gui/widgets/browsercolumn.py b/ranger/gui/widgets/browsercolumn.py index 8367afa6..3757af4b 100644 --- a/ranger/gui/widgets/browsercolumn.py +++ b/ranger/gui/widgets/browsercolumn.py @@ -311,7 +311,10 @@ class BrowserColumn(Pager): infostring = self._draw_infostring_display(drawn, space) elif use_linemode == "papertitle": if paperinfo: - infostring.append([" " + paperinfo.authors[0] + " ", ["infostring"]]) + authorstring = paperinfo.authors + if ',' in authorstring: + authorstring = authorstring[0:authorstring.find(",")] + infostring.append([" " + authorstring + " ", ["infostring"]]) if infostring: infostringlen = self._total_len(infostring) if space - infostringlen > 2: -- cgit 1.4.1-2-gfad0