mirror of
https://github.com/ihabunek/toot.git
synced 2024-11-03 04:17:21 -05:00
Fix alignment in timeline
This commit is contained in:
parent
e1cfda1acb
commit
3f79b76aab
@ -9,7 +9,7 @@ from itertools import chain
|
||||
from itertools import zip_longest
|
||||
from textwrap import wrap, TextWrapper
|
||||
|
||||
from toot.utils import format_content, get_text
|
||||
from toot.utils import format_content, get_text, trunc
|
||||
|
||||
START_CODES = {
|
||||
'red': '\033[31m',
|
||||
@ -138,7 +138,7 @@ def print_timeline(items):
|
||||
return zip_longest(left_column, right_column, fillvalue="")
|
||||
|
||||
for left, right in timeline_rows(item):
|
||||
print_out("{:30} │ {}".format(left, right))
|
||||
print_out("{:30} │ {}".format(trunc(left, 30), right))
|
||||
|
||||
def _parse_item(item):
|
||||
content = item['reblog']['content'] if item['reblog'] else item['content']
|
||||
|
Loading…
Reference in New Issue
Block a user