'Given a list of document lines starting with a quote finds
the end of the quote, unindents it and recursively
processes the body of the quote and the remainder of the
text file.
Keyword arguments:
* parentElem: ElementTree element to which the content will be added
* lines: a list of lines
* inList: a level
Returns: None'

def __processQuote(self, parentElem, lines, inList):

    dequoted = []
    i = 0
    blank_line = False
    for line in lines:
        m = CORE_RE['quoted'].match(line)
        if m:
            dequoted.append(m.group(1))
            i += 1
            blank_line = False
        elif ((not blank_line) and (line.strip() != '')):
            dequoted.append(line)
            i += 1
        elif ((not blank_line) and (line.strip() == '')):
            dequoted.append(line)
            i += 1
            blank_line = True
        else:
            break
    blockquote = etree.SubElement(parentElem, 'blockquote')
    self.parseChunk(blockquote, dequoted, inList)
    self.parseChunk(parentElem, lines[i:], inList)
