clean up some twitter printout formatting

workspace
Brendan Howell 4 years ago
parent 756482724d
commit 81dbe250c8

@ -210,6 +210,7 @@ class PublicRelations(Bureau):
twtext += html.unescape(rt["full_text"]) twtext += html.unescape(rt["full_text"])
else: else:
twtext = html.unescape(tweet["full_text"]) twtext = html.unescape(tweet["full_text"])
twtext += "\n"
prn.block_text(twtext, font="0") prn.block_text(twtext, font="0")
if "media" in tweet["entities"]: if "media" in tweet["entities"]:
@ -226,13 +227,13 @@ class PublicRelations(Bureau):
prn.image(im, impl="bitImageColumn") prn.image(im, impl="bitImageColumn")
tw_shortcode = self.short_tweet_id(tweet["id_str"]) 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.barcode("PRtwrt." + tw_shortcode, "CODE128", function_type="B")
prn.soft_barcode("code128", "PRtwrt." + tw_shortcode, module_width=0.16) 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.barcode("PRtwlk." + tw_shortcode, "CODE128", function_type="B")
prn.soft_barcode("code128", "PRtwlk." + tw_shortcode, module_width=0.16) 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.barcode("PRtwre." + tw_shortcode, "CODE128", function_type="B")
prn.soft_barcode("code128", "PRtwre." + tw_shortcode, module_width=0.16) prn.soft_barcode("code128", "PRtwre." + tw_shortcode, module_width=0.16)
prn.ln(2) prn.ln(2)

Loading…
Cancel
Save