Logo Search packages:      
Sourcecode: calibre version File versions  Download package

def calibre::ebooks::markdown::markdown::Markdown::_linesUntil (   self,
  lines,
  condition 
) [private]

A utility function to break a list of lines upon the
    first line that satisfied a condition.  The condition
    argument should be a predicate function.
    

Definition at line 1525 of file markdown.py.

01525                                            :
        """ A utility function to break a list of lines upon the
            first line that satisfied a condition.  The condition
            argument should be a predicate function.
            """

        i = -1
        for line in lines:
            i += 1
            if condition(line): break
        else:
            i += 1
        return lines[:i], lines[i:]

    def _processQuote(self, parent_elem, lines, inList):


Generated by  Doxygen 1.6.0   Back to index