Changeset 1982


Ignore:
Timestamp:
09/10/07 17:00:37 (12 years ago)
Author:
jukka
Message:

Fixed parsing with pilots.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LeMillTool.py

    r1981 r1982  
    108108    def parse_text(self, text): 
    109109        """ Parses all tags and other strings of interest in text, replaces them with displayable version """ 
     110 
     111        if type(text)==list: 
     112            return [self.parse_text(t) for t in text] # recursion! 
    110113     
    111114        # global regex 'pattern' contains expressions to find these cases and groups them by type         
     
    254257                return endfile(match) 
    255258     
    256         open_tags=[] 
     259        open_tags=[]         
    257260        return pattern.sub(replacements, text) 
    258261 
Note: See TracChangeset for help on using the changeset viewer.