diff --git a/manimlib/extract_scene.py b/manimlib/extract_scene.py index 00acc778..143e338c 100644 --- a/manimlib/extract_scene.py +++ b/manimlib/extract_scene.py @@ -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") diff --git a/manimlib/mobject/svg/tex_mobject.py b/manimlib/mobject/svg/tex_mobject.py index b8efddf5..49dbbe02 100644 --- a/manimlib/mobject/svg/tex_mobject.py +++ b/manimlib/mobject/svg/tex_mobject.py @@ -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