@property
def end_blank_lines(self):
    i = None
    if self.raw_doc:
        for (i, row) in enumerate(reversed(self.raw_doc.split('\n'))):
            if row.strip():
                break
    return i
@property
def end_blank_lines(self):
    i = None
    if self.raw_doc:
        for (i, row) in enumerate(reversed(self.raw_doc.split('\n'))):
            if row.strip():
                break
    return i