fix: regex splitter no longer skips newlines

pull/880/head
Callum Leslie 2 years ago
parent 721eca4d3e
commit a3e7b979f3
No known key found for this signature in database
GPG Key ID: D382C4AFEECEAA90

@ -79,7 +79,9 @@ class TTSEngine:
split_files = [] split_files = []
split_text = [ split_text = [
x.group().strip() x.group().strip()
for x in re.finditer(rf" *((.{{0,{self.tts_module.max_chars}}})(\.|.$))", text) for x in re.finditer(
r" *(((.|\n){0," + str(self.tts_module.max_chars) + "})(\.|.$))", text
)
] ]
idy = None idy = None

Loading…
Cancel
Save