Fixed TextMobject bug

This commit is contained in:
Grant Sanderson
2018-09-20 10:39:19 -07:00
parent c2e42c4281
commit 1ca7e8ecda
2 changed files with 6 additions and 7 deletions

View File

@ -43,12 +43,12 @@ def split_string_to_isolate_substrings(full_string, *substrings_to_isolate):
))))
all_substrings.pop(-1)
all_substrings = [s for s in all_substrings if s != ""]
return split_string_list_to_isolate_substring(
return split_string_list_to_isolate_substrings(
all_substrings, *substrings_to_isolate[1:]
)
def split_string_list_to_isolate_substring(string_list, *substrings_to_isolate):
def split_string_list_to_isolate_substrings(string_list, *substrings_to_isolate):
"""
Similar to split_string_to_isolate_substrings, but the first argument
is a list of strings, thought of as something already broken up a bit.