GNOME Bugzilla – Bug 567773
zenity --entry --text Don't interprets "\n"
Last modified: 2009-08-08 09:11:11 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,
Created attachment 131564 [details] [review] Run the text through g_strcompress() The attached patch fixes this.
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.
Commited. Thanks for the review, Owen.
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