def printOutput(self, text):
        if '\r' in text:
            text = text.replace('\r', '\n')
        lines = text.split('\n')
        for one_line in lines:
            if len(one_line) > 0:
                print self.formatLine(one_line)