diff options
-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: |