Fix bug where empty lines were removed after a command.