Multiline replacements cause UI distortion
Describe the bug
If something produces a multiline replacement, the interactive ui is distorted since the \n is not handled properly.
Currently this can be observed with the upcoming reflow feature in #95 or possibly with a running instance of languagetool server and certain grammar mistakes spanning across multiple lines.
Expected behavior The UI should be able to present such items as a multiline block too.
Pplease complete the following information:
- System: Fedora
- Obtained: git
- Version: #95
Relevant files are:
-
src/action/mod.rs -
src/action/interactive.rs -
src/documentation/chunk.rs
This is also necessary for displaying multiline replacements for the reflow subcommand.
Consider using inquire, pending https://github.com/mikaelmello/inquire/issues/96