use extended tweet field

workspace
Brendan Howell 6 years ago
parent f3463fff9d
commit 071292d1df

@ -149,7 +149,7 @@ class PublicRelations(Bureau):
prn._raw(username)
prn.text("\r\n")
prn.set(text_type="NORMAL")
twtext = html.unescape(t["text"])
twtext = html.unescape(t["full_text"])
t_wrapped = textwrap.fill(twtext, width=48) + "\r\n"
t_enc = t_wrapped.encode("cp437", "ignore")
prn._raw(t_enc)
@ -189,7 +189,7 @@ class PublicRelations(Bureau):
prn._raw(username)
prn.text("\r\n")
prn.set(text_type="NORMAL")
twtext = html.unescape(tweet["text"])
twtext = html.unescape(tweet["full_text"])
t_wrapped = textwrap.fill(twtext, width=48) + "\r\n"
t_enc = t_wrapped.encode("cp437", "ignore")
prn._raw(t_enc)

Loading…
Cancel
Save