Merge branch 'master' of github.com:3b1b/manim into ode

This commit is contained in:
Grant Sanderson 2019-04-04 08:56:03 -07:00
commit 5e6dc3b492
2 changed files with 5 additions and 2 deletions

View file

@ -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")

View file

@ -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