Currently, the comment preview is not updated when the text is changed using the formatting buttons. One has to type something on the keyboard in order to see the change. Another nuisance is that when there are no characters left in the text area, the preview retains its old state. This PR makes both cases show the expected behavior.
It also slightly adjusts the buttons’ implementation, so that e.g. ‘Quote’ won’t remove innocuous > characters in the middle of lines. Quoting now also handles multiple paragraphs and adds one level of quoting whenever at least one unquoted line is selected, which should make it easier to work with nested quotations.
Currently, the comment preview is not updated when the text is changed using the formatting buttons. One has to type something on the keyboard in order to see the change. Another nuisance is that when there are no characters left in the text area, the preview retains its old state. This PR makes both cases show the expected behavior.
It also slightly adjusts the buttons’ implementation, so that e.g. ‘Quote’ won’t remove innocuous
>
characters in the middle of lines. Quoting now also handles multiple paragraphs and adds one level of quoting whenever at least one unquoted line is selected, which should make it easier to work with nested quotations.