### Bug description

When pasting a piece of text from MSWord in visual mode, some extra lines are included. Linebreaks are also added in the text (at a given width). When pasting the same piece of text in source mode, the result is as expected with no lines or linebreaks added. 
This seems to be true on Win11 and MacOS, with the latest RStudio (492) installed.

### Checklist

- [ ] [formatted your issue](https://yihui.org/issue/#please-format-your-issue-correctly) so it is easier for us to read?
- [ ] included a minimal, self-contained, and reproducible example?
- [ ] documented the quarto version you're running, by providing the output produced by `quarto check` in a terminal in your issue?
- [ ] documented the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [ ] documented which operating system you're running? If on Linux, please provide the specific distribution as well.
- [ ] upgraded to the latest version, including your versions of R, the RStudio IDE, and relevant R packages?
2022-06-09T16:58:55Z
xtimbeau
bug
closed
pasting from word in visual mode
https://github.com/quarto-dev/quarto-cli/issues/1117