After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 766822 - TextView: spaces acting as non-breaking whitespace if :left- or :right-margin is set
TextView: spaces acting as non-breaking whitespace if :left- or :right-margin...
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Widget: GtkTextView
3.22.x
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2016-05-23 20:05 UTC by charlesaymard
Modified: 2018-05-02 17:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Testcase (557 bytes, text/plain)
2016-05-24 08:15 UTC, Timm Bäder
Details

Description charlesaymard 2016-05-23 20:05:51 UTC
In using the GTK Twitter-Client corebird(http://corebird.baedert.org/), I encountered a problem with the way spaces are treated by GTK: they seem to act as non-breaking white space that prevent text from wrapping around/between words (See conversation on Twitter https://twitter.com/corebirdclient/status/734826338222231552)

Expected behaviour would be (as mentioned there, that text wraps around words when 'wrap mode' is 'word-char'.
Comment 1 Matthias Clasen 2016-05-24 01:24:08 UTC
works fine here; a testcase would be needed to figure out what is going on
Comment 2 Timm Bäder 2016-05-24 08:15:08 UTC
Created attachment 328418 [details]
Testcase

This seems to happen whenever left-margin *and* right-margin are set. Without the g_object_set call here, everything works fine.
Comment 3 mail+gnome 2016-09-27 14:33:32 UTC
+1 encountering the same issue here, also in Corebird's DM implementation.  It makes it cumbersome to type a message of more than a few words, as the window gets wider and wider to fit the text instead of the text wrapping.
Comment 4 mail+gnome 2017-01-17 21:47:00 UTC
I think this may be fixed?  Haven't had this issue when I was using the latest Ubuntu Mate.
Comment 5 charlesaymard 2017-01-17 22:07:37 UTC
yes, it works in my version of Corebird on Gnome on Antergos as well
Comment 6 Timm Bäder 2017-01-18 07:50:27 UTC
We worked around it in Corebird. This bug is not fixed.
Comment 7 Matthias Clasen 2017-01-18 17:12:44 UTC
it certainly works when the textview is inside a scrolled window.
Comment 8 Wolf Vollprecht 2018-01-29 10:33:46 UTC
I am encountering the same issue in Fedora 27 in UberWriter. 
Setting left- and right margin makes the textview expand, even though wrapping is set to word wrap.

Same effect when setting a left padding in the CSS with the inspector.

Any way I could help solve this bug?
Comment 9 Daniel Boles 2018-02-16 19:22:35 UTC
(In reply to Timm Bäder from comment #2)
> Created attachment 328418 [details]
> Testcase
> 
> This seems to happen whenever left-margin *and* right-margin are set.
> Without the g_object_set call here, everything works fine.

pedantry: as your test case showed, both are not required; the logic is that having either left *or* right margin will cause the problem.
Comment 10 GNOME Infrastructure Team 2018-05-02 17:10:43 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gtk/issues/628.