':rtype: str'

def format_block(self):

    if self.summary:
        block = self.summary
    else:
        block = '\n'.join((str(m) for m in self.messages))
    message = block.strip()
    message = message.replace(display.clear, '')
    return message
