From 81dbe250c89884e6aa4d9668276087d07d7da387 Mon Sep 17 00:00:00 2001 From: Brendan Howell Date: Fri, 4 Dec 2020 00:04:48 +0100 Subject: [PATCH] clean up some twitter printout formatting --- screenless/bureau/publicrelations/publicrelations.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/screenless/bureau/publicrelations/publicrelations.py b/screenless/bureau/publicrelations/publicrelations.py index b80b0ca..79d5f25 100644 --- a/screenless/bureau/publicrelations/publicrelations.py +++ b/screenless/bureau/publicrelations/publicrelations.py @@ -210,6 +210,7 @@ class PublicRelations(Bureau): twtext += html.unescape(rt["full_text"]) else: twtext = html.unescape(tweet["full_text"]) + twtext += "\n" prn.block_text(twtext, font="0") if "media" in tweet["entities"]: @@ -226,13 +227,13 @@ class PublicRelations(Bureau): prn.image(im, impl="bitImageColumn") tw_shortcode = self.short_tweet_id(tweet["id_str"]) - prn.text("retweet\r\n") + prn.text("Retweet\r\n") #prn.barcode("PRtwrt." + tw_shortcode, "CODE128", function_type="B") prn.soft_barcode("code128", "PRtwrt." + tw_shortcode, module_width=0.16) - prn.text("like\r\n") + prn.text("Like\r\n") #prn.barcode("PRtwlk." + tw_shortcode, "CODE128", function_type="B") prn.soft_barcode("code128", "PRtwlk." + tw_shortcode, module_width=0.16) - prn.text("\r\n\r\n") + prn.text("Reply\r\n") #prn.barcode("PRtwre." + tw_shortcode, "CODE128", function_type="B") prn.soft_barcode("code128", "PRtwre." + tw_shortcode, module_width=0.16) prn.ln(2)