forked from cmccabe/linkulator2
Ensure multiline replies are wrapped and printed
This commit is contained in:
parent
a1b660a7cd
commit
7bd1974f0f
|
@ -144,11 +144,11 @@ def view_post(post, cols) -> list[str]:
|
|||
sep=" ", timespec="minutes"
|
||||
)
|
||||
reply_text = replies[6]
|
||||
body.append(
|
||||
line_wrapper.fill(
|
||||
" {} {}: {}".format(reply_date, reply_author, reply_text)
|
||||
)
|
||||
)
|
||||
wrapped_reply = line_wrapper.fill(
|
||||
" {} {}: {}".format(reply_date, reply_author, reply_text)
|
||||
).splitlines()
|
||||
for line in wrapped_reply:
|
||||
body.append(line)
|
||||
else:
|
||||
body.append("\n No replies yet. Be the first!")
|
||||
return body
|
||||
|
|
Loading…
Reference in New Issue