From d0f6ddd296298e026dacac3d4effdefbdbe2eeb4 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 24 Mar 2022 13:38:10 +0000 Subject: [PATCH] Don't embolden emoji strings --- content.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content.py b/content.py index c2aad31ac..02f666159 100644 --- a/content.py +++ b/content.py @@ -1339,7 +1339,9 @@ def bold_reading_string(text: str) -> str: words = parag.split(' ') new_parag = '' for wrd in words: - if len(wrd) > 1 and '<' not in wrd and '>' not in wrd: + if len(wrd) > 1 and \ + '<' not in wrd and '>' not in wrd and \ + not wrd.startswith(':'): initial_chars = int(len(wrd) / 2) new_parag += \ '' + wrd[:initial_chars] + '' + \