Composer: Paste plain text as Preformatted
Hello team,
evolution-3.38.2 with webkit-gtk-2.30.3 here. AMD64 with kernel 5.9.11. XFCE4 DE with compiz enabled. GNU/Gentoo Linux
The issue: When composing a new message in plain-text mode, select 'Preformatted' style and paste a multi-line text. Observe the pasted text becomes 'Normal' instead of remaining 'Preformatted'.
This was not how it behaved before Evolution switched to webkit-gtk for compositor.
As discussed with @mcrha in IRC and testing webkit-gtk through 'MiniBrowser --editor-mode' the outcome is that webkit-gtk preserves the '
...tags' however, Evo does not.
Here are the steps provided for the webkit-gtk test (outside of Evo):
1.) /usr/libexec/webkit2gtk-4.0/MiniBrowser --editor-mode 2.) Right-click in the body and pick "inspect Element", then click on the Console tab and paste there: document.body.innerHTML = "
a\nb\nc" 3.) Press Enter 4.) The body will change. Close the inspector and paste text in the middle of the a/b/c and observe how the '
...' tags are preserved
Current workaround in Evo is to select the pasted text and mark it as 'Preformatted' after the fact.