snakeware

Python-based Linux distro for x86-64 and RPi
git clone git://squid-tech.com/snakeware.git
Log | Files | Refs | README

commit 8977a3a39de930ea824e2bcb2c0eb123743a9ec0
parent 9c49c9e3315e9835cf94103cd1d3d3cf675e4090
Author: Josh Moore <jxm5210@g.rit.edu>
Date:   Mon, 15 Jun 2020 17:38:25 -0400

Merge pull request #122 from karx1/master

speaknspell: replace newline with HTML newline
Diffstat:
Msnakewm/apps/fun/speaknspell/speak.py | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/snakewm/apps/fun/speaknspell/speak.py b/snakewm/apps/fun/speaknspell/speak.py @@ -61,6 +61,9 @@ class SpeakSpell(pygame_gui.elements.UIWindow): if text == "": return + + text = text.replace("\n", "<br>") + spoken = re.sub(r"<(.*?)>", "", text) self.engine.say(spoken) self.speakthrd = threading.Thread(target=self.engine.runAndWait, args=())