Wrap subreddit title instead of name
This commit is contained in:
@@ -404,7 +404,7 @@ class SubscriptionContent(BaseContent):
|
|||||||
self._subscription_data.append(data)
|
self._subscription_data.append(data)
|
||||||
|
|
||||||
data = self._subscription_data[index]
|
data = self._subscription_data[index]
|
||||||
data['split_title'] = wrap_text(data['name'], width=n_cols)
|
data['split_title'] = wrap_text(data['title'], width=n_cols)
|
||||||
data['n_rows'] = len(data['split_title']) + 1
|
data['n_rows'] = len(data['split_title']) + 1
|
||||||
data['offset'] = 0
|
data['offset'] = 0
|
||||||
|
|
||||||
|
|||||||
@@ -66,9 +66,9 @@ class SubscriptionPage(BasePage):
|
|||||||
n_title = len(data['split_title'])
|
n_title = len(data['split_title'])
|
||||||
for row, text in enumerate(data['split_title'], start=offset):
|
for row, text in enumerate(data['split_title'], start=offset):
|
||||||
if row in valid_rows:
|
if row in valid_rows:
|
||||||
attr = curses.A_BOLD | Color.YELLOW
|
add_line(win, text, row, 1)
|
||||||
add_line(win, u'{name}'.format(**data), row, 1, attr)
|
|
||||||
|
|
||||||
row = n_title + offset
|
row = n_title + offset
|
||||||
if row in valid_rows:
|
if row in valid_rows:
|
||||||
add_line(win, u'{title}'.format(**data), row, 1)
|
attr = curses.A_BOLD | Color.YELLOW
|
||||||
|
add_line(win, u'{name}'.format(**data), row, 1, attr)
|
||||||
|
|||||||
Reference in New Issue
Block a user