Fix double newline when pressing alt-enter