mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Prevent from passing an empty string
This commit is contained in:
parent
42444d090e
commit
bff9f74b04
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ class MTex(LabelledString):
|
|||
|
||||
def __init__(self, tex_string: str, **kwargs):
|
||||
# Prevent from passing an empty string.
|
||||
if not tex_string:
|
||||
if not tex_string.strip():
|
||||
tex_string = "\\\\"
|
||||
self.tex_string = tex_string
|
||||
super().__init__(tex_string, **kwargs)
|
||||
|
|
Loading…
Add table
Reference in a new issue