'Align list of rows of cell. Whitespace characters will be stripped
if there is only one whitespace character - otherwise, it\'s assumed
the caller may be trying some manual formatting in the text.
Args:
data (str): Text to align.
Returns:
text (str): Aligned result.'

def _align(self, data):

    align = self.align
    hfill_char = self.hfill_char
    width = self.width
    if (align == 'l'):
        lines = [(((line.lstrip('    ') + '    ') if (line.startswith('    ') and (not line.startswith('        '))) else line) + (hfill_char * (width - m_len(line)))) for line in data]
        return lines
    elif (align == 'r'):
        return [((hfill_char * (width - m_len(line))) + (('    ' + line.rstrip('    ')) if (line.endswith('    ') and (not line.endswith('        '))) else line)) for line in data]
    else:
        return [self._center(line, self.width, self.hfill_char) for line in data]
