Merge branch '5225224-dot_spacing'

This commit is contained in:
Michael Lazar committed 2016-02-08 21:40:36 -08:00
commit 2a9bf95947
2 files changed
+10 -1

No files matched your search

+4 -1
View File
@@ -190,7 +190,10 @@ class SubredditPage(Page):
self.term.add_line(win, '{score} '.format(**data), row, 1)
text, attr = self.term.get_arrow(data['likes'])
self.term.add_line(win, text, attr=attr)
self.term.add_line(win, ' {created} {comments} '.format(**data))
self.term.add_line(win, ' {created} '.format(**data))
text, attr = self.term.timestamp_sep
self.term.add_line(win, text, attr=attr)
self.term.add_line(win, ' {comments} '.format(**data))
if data['stickied']:
text, attr = self.term.stickied
self.term.add_line(win, text, attr=attr)
+6
View File
@@ -57,6 +57,12 @@ class Terminal(object):
@property
def neutral_arrow(self):
symbol = '>' if self.ascii else '‣'
attr = curses.A_BOLD
return symbol, attr
@property
def timestamp_sep(self):
symbol = 'o' if self.ascii else '•'
attr = curses.A_BOLD
return symbol, attr