|
|
@ -311,7 +311,8 @@ class PublicRelations(Bureau):
|
|
|
|
prn._raw(username)
|
|
|
|
prn._raw(username)
|
|
|
|
prn.text("\r\n")
|
|
|
|
prn.text("\r\n")
|
|
|
|
prn.set(text_type="NORMAL")
|
|
|
|
prn.set(text_type="NORMAL")
|
|
|
|
ttext = bleach.clean(t.content, strip=True)
|
|
|
|
ttext = bleach.clean(t.content, tags=[], strip=True)
|
|
|
|
|
|
|
|
ttext = html.unescape(ttext)
|
|
|
|
t_wrapped = textwrap.fill(ttext, width=48) + "\r\n"
|
|
|
|
t_wrapped = textwrap.fill(ttext, width=48) + "\r\n"
|
|
|
|
t_enc = t_wrapped.encode("cp437", "ignore")
|
|
|
|
t_enc = t_wrapped.encode("cp437", "ignore")
|
|
|
|
prn._raw(t_enc)
|
|
|
|
prn._raw(t_enc)
|
|
|
|