Hidden text in TextView doesn't hide a line-feed/carriage return
Bug 597798 from the Bugzilla tracker was never fixed or migrated to Gitlab. Here is the original description:
Using a text tag to render a selection of text invisible fails if the text to be hidden includes one or more line ends anywhere within the selection. This is irrespective of wrap mode, including 'no wrap'.
Expected result: all the selected text will be hidden and the surrounding text will be shown adjacent (with spaces as in the non-hidden text).
Actual result: a new line is inserted after the hidden text.
This bug is still present. I'm on Arch Linux (6.6.2-arch-1-1), gtk 3.24.38-1.
I've created a little demo app that reproduces the bug.