Skip Menu |

This queue is for tickets about the UI-Dialog CPAN distribution.

Report information
The Basics
Id: 32706
Status: resolved
Worked: 5 min
Priority: 0/
Queue: UI-Dialog

People
Owner: kevin [...] krinke.ca
Requestors: richard.moehn [...] gmx.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 1.09



Subject: missing Interpolation of \n
Date: Sun, 27 Jan 2008 15:06:48 +0100
To: bug-UI-Dialog [...] rt.cpan.org
From: Richard_Moehn <richard.moehn [...] gmx.de>
I've installed UI-Dialog-1.08 and tried to run following code with perl v5.8.8 under Linux 2.6.22-3-686 (Debian GNU/Linux 4.0r2): use UI:Dialog::Backend::XDialog; my $dialog = new UI:Dialog::Backend::XDialog; $dialog -> infobox(title => 'nice title', text => "This\nis\nan\nexamle."); But the \n isn't interpolated and so all the text appears on one line, although the original Xdialog provides this feature. I've also tried to out the text in a variable and used yesno and msgbox, but it doesn't work. There is no error message while running the program.
Subject: missing Interpolation of \n
Date: Sun, 27 Jan 2008 14:53:50 +0100
To: bug-UI-Dialog [...] rt.cpan.org
From: Richard_Moehn <richard.moehn [...] gmx.de>
I've installed UI-Dialog-1.08 and wanted to run following code with perl v5.8.8 under Linux 2.6.22-3-686 (Debian GNU/Linux 4.0r2): use UI::Dialog::Backend::XDialog; my $dialog = new UI::Dialog::Backend::XDialog; $dialog -> infobox(title => 'nice title', text => "This\nis\na\nnice\example."); But the \n isn't interpolated and so all the text is on one line, although the original Xdialog provides this function. I also tried to put the text into a variable and used yesno and msgbox but it doesn't work. There is no error message while running the program.
On Sun Jan 27 09:07:17 2008, richard.moehn@gmx.de wrote: Show quoted text
> I've installed UI-Dialog-1.08 and tried to run following code with > perl v5.8.8 under Linux 2.6.22-3-686 (Debian GNU/Linux 4.0r2): > > use UI:Dialog::Backend::XDialog; > > my $dialog = new UI:Dialog::Backend::XDialog; > $dialog -> infobox(title => 'nice title', > text => "This\nis\nan\nexamle."); > > But the \n isn't interpolated and so all the text appears on one line, > although the original Xdialog provides this feature. > I've also tried to out the text in a variable and used yesno and > msgbox, but it doesn't work. > There is no error message while running the program.
Richard, Thank you for reporting this bug; I apologize for the delay in response. There is a similar issue affecting UI::Dialog::Backend::Zenity; I believe it should be straightforward to port the fix over to UI::Dialog::Backend::XDialog. -steve -- Steve Huff * hakamadare@users.sourceforge.net
From: guido [...] guido-leisker.de
This is not a bug but a feature. UI::Dialog automatically organizes the text to fit into the window. If you don't want UI::Dialog to do that, use the literal-option. For me (using CDialog) this works but it is also documented for XDialog. This should work: $dialog -> infobox(title => 'nice title', text => "This\nis\nan\nexamle.", literal => 1); Anyway, I thinks this feature should be documented in UI::Dialog too!
From: guido [...] guido-leisker.de
Show quoted text
> There is a similar issue affecting UI::Dialog::Backend::Zenity; I
believe it Show quoted text
> should be straightforward to port the fix over to > UI::Dialog::Backend::XDialog.
I don't think that this is somehow related to the Zenity backend bug.
Documentation for XDialog was updated in 1.09. Just a little blurb noting that 'literal' option for that backend. -- Kevin C. Krinke <kevin@krinke.ca>