This commit is contained in:
Kovid Goyal 2020-11-20 22:45:13 +05:30
parent 05fe8d8ef5
commit 606bf90c13
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -38,7 +38,7 @@ class Client:
def speak_simple_text(self, text): def speak_simple_text(self, text):
self.current_callback = None self.current_callback = None
self.pending_events = [] self.pending_events = []
self.nsss.speak(text.replace('[[', '[').replace(']]', ']')) self.nsss.speak(self.escape_marked_text(text))
def speak_marked_text(self, text, callback): def speak_marked_text(self, text, callback):
self.current_callback = callback self.current_callback = callback