diff options
author | hut <hut@lepus.uberspace.de> | 2014-12-03 22:03:07 +0100 |
---|---|---|
committer | hut <hut@lepus.uberspace.de> | 2014-12-03 22:03:07 +0100 |
commit | db7ad38a95381cc7cf2f3739acc745c7b4ab8f5a (patch) | |
tree | 1806c92dd824e4ecc243017ba746321ecad6691a | |
parent | be79683c98602082b16c6ef0194a22c6f904a572 (diff) | |
download | ranger-db7ad38a95381cc7cf2f3739acc745c7b4ab8f5a.tar.gz |
ext.papermanager: don't transform pagerinfo.authors
-rw-r--r-- | ranger/ext/papermanager.py | 2 | ||||
-rw-r--r-- | 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: |