Leo's g.skip_ functions are a relic of my C coding days. They are usually slow and clumsy compared to regex patterns.
The new importer uses regex's almost everywhere, including all clean_headline methods, and wherever the code needs to determine whether a line starts a class or def. An interesting special case. Importer.__init__ contains the following code: self.escape = c.atFileCommands.underindentEscapeString # typically, r'\\-' self.escape_string = r'%s([0-9]+)\.' % re.escape(self.escape) Every python programmer should be aware of re.escape, as explained here <http://stackoverflow.com/questions/280435/escaping-regex-string-in-python>. EKR -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+unsubscr...@googlegroups.com. To post to this group, send email to leo-editor@googlegroups.com. Visit this group at https://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.