mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Merge branch 'master' of github.com:3b1b/manim into ode
This commit is contained in:
commit
5e6dc3b492
2 changed files with 5 additions and 2 deletions
|
@ -35,8 +35,10 @@ def open_file_if_needed(file_writer, **config):
|
|||
os.startfile(file_path)
|
||||
else:
|
||||
commands = []
|
||||
if (current_os == "Linux"):
|
||||
if current_os == "Linux":
|
||||
commands.append("xdg-open")
|
||||
elif current_os.startswith("CYGWIN"):
|
||||
commands.append("cygstart")
|
||||
else: # Assume macOS
|
||||
commands.append("open")
|
||||
|
||||
|
|
|
@ -157,7 +157,8 @@ class TexMobject(SingleStringTexMobject):
|
|||
split_list = split_string_list_to_isolate_substrings(
|
||||
tex_strings, *substrings_to_isolate
|
||||
)
|
||||
split_list = list(map(str.strip, split_list))
|
||||
split_list = [str(x).strip() for x in split_list]
|
||||
#split_list = list(map(str.strip, split_list))
|
||||
split_list = [s for s in split_list if s != '']
|
||||
return split_list
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue