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 567773 - zenity --entry --text Don't interprets "\n"
zenity --entry --text Don't interprets "\n"
Status: RESOLVED FIXED
Product: zenity
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Zenity Maintainers
Zenity Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-01-14 18:02 UTC by Pedro Villavicencio
Modified: 2009-08-08 09:11 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24


Attachments
Run the text through g_strcompress() (516 bytes, patch)
2009-03-28 15:00 UTC, Siegfried Gevatter (RainCT)
committed Details | Review

Description Pedro Villavicencio 2009-01-14 18:02:31 UTC
this report has been filed here:

https://bugs.edge.launchpad.net/ubuntu/+source/zenity/+bug/317140

"zenity --entry --text="text 1\ntext 2"

When Zenity it shows this entry window, it shows "text 1\ntext 2" literally, It doesn't the line break."

Thanks,
Comment 1 Siegfried Gevatter (RainCT) 2009-03-28 15:00:17 UTC
Created attachment 131564 [details] [review]
Run the text through g_strcompress()

The attached patch fixes this.
Comment 2 Owen Taylor 2009-08-07 23:42:59 UTC
Looks good to commit to me. What uses gtk_label_set_markup() vs. gtk_label_set_text() seems pretty much random, but changing that would be a compatibility break. Adding the strcompress seems pretty safe.
Comment 3 Siegfried Gevatter (RainCT) 2009-08-08 00:00:15 UTC
Commited. Thanks for the review, Owen.
Comment 4 Frederic Peters 2009-08-08 09:11:11 UTC
commit 94190df420ee849752f5726979fea65fdb3b313b
Author: Siegfried-Angel Gevatter Pujals <rainct@ubuntu.com>
Date:   Sat Aug 8 01:55:22 2009 +0200

    Bug 567773 – "zenity --entry --text" doesn't interpret line breaks