def METHOD_NAME(self, event):
    """TableController: override c.editCommands.insertNewLine."""
    w = self.ec.editWidget(event)
    i, s, lines = self.get_table('return', w)
    if lines:
        self.put('\n', event)
        self.put('|', event)
    else:
        self.put('\n', event)