We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57f228b commit 216df53Copy full SHA for 216df53
manim/mobject/svg/code_mobject.py
@@ -206,7 +206,8 @@ def __init__(
206
raise ValueError(
207
"Neither a code file nor a code string have been specified."
208
)
209
- self.style = self.style.lower()
+ if isinstance(self.style, str):
210
+ self.style = self.style.lower()
211
self.gen_html_string()
212
strati = self.html_string.find("background:")
213
self.background_color = self.html_string[strati + 12 : strati + 19]
0 commit comments