def break_up_tex_strings(self, tex_strings): substrings_to_isolate = op.add(self.substrings_to_isolate, list(self.tex_to_color_map.keys())) split_list = split_string_list_to_isolate_substrings( tex_strings, *substrings_to_isolate) split_list = list(map(str.strip, split_list)) split_list = [s for s in split_list if s != ''] return split_list
def break_up_tex_strings(self, tex_strings): substrings_to_isolate = op.add(self.substrings_to_isolate, list(self.tex_to_color_map.keys())) split_list = split_string_list_to_isolate_substrings( tex_strings, *substrings_to_isolate) if self.arg_separator == ' ': 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
def break_up_tex_strings(self, tex_strings): substrings_to_isolate = op.add( self.substrings_to_isolate, list(self.tex_to_color_map.keys()) ) split_list = split_string_list_to_isolate_substrings( tex_strings, *substrings_to_isolate ) 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