mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
fix issue #1480
This commit is contained in:
parent
565ff09d58
commit
29e5a8bc90
1 changed files with 4 additions and 1 deletions
|
@ -181,7 +181,10 @@ class Tex(SingleStringTex):
|
|||
pattern = "|".join(patterns)
|
||||
pieces = []
|
||||
for s in tex_strings:
|
||||
pieces.extend(re.split(pattern, s))
|
||||
if pattern:
|
||||
pieces.extend(re.split(pattern, s))
|
||||
else:
|
||||
pieces.append(s)
|
||||
return list(filter(lambda s: s, pieces))
|
||||
|
||||
def break_up_by_substrings(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue