Made so the local_and_global_search strips the query of surrounding whitespace. Many calling functions don't do this properly, making it a source of bugs. E.g. "@desc obj = text" did not locate obj but "@desc obj= text" did.

This commit is contained in:
Griatch 2009-05-01 07:16:44 +00:00
parent ba623af351
commit cae925c29b
3 changed files with 10 additions and 10 deletions

View file

@ -135,8 +135,8 @@ class ExtendedANSIParser(MuxANSIParser):
(r'{n', normal) #reset
] )
ANSI_PARSER = MuxANSIParser()
#ANSI_PARSER = ExtendedANSIParser()
#ANSI_PARSER = MuxANSIParser()
ANSI_PARSER = ExtendedANSIParser()
def parse_ansi(string, strip_ansi=False, strip_formatting=False, parser=ANSI_PARSER):
"""