mirror of
https://github.com/3b1b/manim.git
synced 2025-07-30 21:44:19 +08:00
Fixed TextMobject bug
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user