Bug#149691: marked as done (gdialog: does not wrap text as documented in its manpage)

Debian Bug Tracking System owner@bugs.debian.org
Sun, 16 Nov 2003 16:03:17 -0600


Your message dated Sun, 16 Nov 2003 22:00:12 +0000
with message-id <1069020012.4908.21.camel@localhost.localnet>
and subject line Closing
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 11 Jun 2002 18:15:09 +0000
>From branden@progeny.com Tue Jun 11 13:15:08 2002
Return-path: <branden@progeny.com>
Received: from morimoto.progeny.com [216.37.46.163] (87ef7802abc2a1b3300603dad35612a3)
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 17HqAe-0001cv-00; Tue, 11 Jun 2002 13:15:08 -0500
Received: from zuul.progeny.com (zuul.progeny.com [192.168.1.42])
	by morimoto.progeny.com (Postfix) with ESMTP
	id 0D56C636A4; Tue, 11 Jun 2002 13:15:08 -0500 (EST)
Received: by zuul.progeny.com (Postfix, from userid 10001)
	id E1295C3; Tue, 11 Jun 2002 13:15:07 -0500 (EST)
Subject: gdialog: does not wrap text as documented in its manpage
From: "Branden Robinson" <branden@progeny.com>
To: "Debian Bug Tracking System" <submit@bugs.debian.org>
X-Mailer: reportbug 1.99.29
Date: Tue, 11 Jun 2002 13:15:07 -0500
Message-Id: <20020611181507.E1295C3@zuul.progeny.com>
Delivered-To: submit@bugs.debian.org

Package: gnome-utils
Version: 1.4.1.2-4
Severity: normal

gdialog's manpage makes the following claims:

	If this string is too long to be fitted in one line, it will be
	automatically divided into multiple lines at appropriate places.
	The text string may also contain the sub-string "\n" or  newline
	charac­ ters  `\n´  to control line breaking explicitly.

The first sentence is imperfectly implemented and the second is just
plain false, as far as I can tell.

gdialog does do automatic wrapping, but it does not eliminate inter-word
spaces when it does so.

So if you wrap a line like this

It comes out looking
 like this.

(Note the leading space.)

Also, no combination of quoting I tried got explicit linebreaking to
work.  gdialog's parser seems to understand that "\n" and explicit
newlines are something special, but it appears to throw them away, and
does not actually insert a linebreak at the given location.  Instead, it
eliminates the newlines from the input stream and wraps the lines
wherever it wants to.

Here's an example you can use to reproduce this problem:

        gdialog --title "Run GNOME task selector?" --yesno \
'If you wish, the GNOME task selector can be run now.  This will permit
you to install Debian packages corresponding to certain usage profiles,
such as Japanese localization, games, or software development in the C
language.

Otherwise, you can skip this step and do packge management at a later
time, or using a different tool.

Would you like to use the GNOME task selector now?' 20 70

Replacing the explicit linebreaks above with "\n" does not change
gdialog's behavior at all.

-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux zuul.progeny.com 2.4.18-386 #2 Sun Apr 14 10:38:08 EST 2002 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages gnome-utils depends on:
ii  e2fsprogs [libext2fs2]   1.27-2          The EXT2 file system utilities and
ii  gdk-imlib1               1.9.14-4        Gdk-Imlib is an imaging library fo
ii  gnome-core               1.4.0.8-3       Common files for Gnome core apps
ii  libart2                  1.4.1.7-1       The GNOME canvas widget - runtime 
ii  libaudiofile0            0.2.3-4         The Audiofile Library
ii  libc6                    2.2.5-6         GNU C Library: Shared libraries an
ii  libdb3                   3.2.9-16        Berkeley v3 Database Libraries [ru
ii  libesd0                  0.2.23-3        Enlightened Sound Daemon - Shared 
pn  libext2fs2                               Not found.
ii  libfreetype6             2.0.9-1         FreeType 2 font engine, shared lib
ii  libgal19                 0.19.2-2        G App Libs (run time library)
ii  libgconf11               1.0.9-2         GNOME configuration database syste
ii  libgdk-pixbuf-gnome2     0.17.0-2        The GNOME Canvas pixbuf library
ii  libgdk-pixbuf2           0.17.0-2        The GdkPixBuf library.
ii  libglade-gnome0          1:0.17-2.2      Library to load .glade files at ru
ii  libglade0                1:0.17-2.2      Library to load .glade files at ru
ii  libglib1.2               1.2.10-5        The GLib library of C routines
ii  libgnome32               1.4.1.7-1       The GNOME libraries
ii  libgnomeprint15          0.35-5          The GNOME Print architecture - run
ii  libgnomesupport0         1.4.1.7-1       The GNOME libraries (Support libra
ii  libgnomeui32             1.4.1.7-1       The GNOME libraries (User Interfac
ii  libgnorba27              1.4.1.7-1       GNOME CORBA services
ii  libgtk1.2                1.2.10-12       The GIMP Toolkit set of widgets fo
ii  libgtkhtml20             1.0.2-1         HTML rendering/editing library - r
ii  libgtkxmhtml1            1.4.1.7-1       The GNOME gtkxmhtml (HTML) widget
ii  libgtop1                 1.0.13-3        Libraries for gtop system monitori
ii  libguile9                1:1.4-24        libraries for Guile1.4 (guile, gui
ii  libjpeg62                6b-5            The Independent JPEG Group's JPEG 
ii  libncurses5              5.2.20020112a-8 Shared libraries for terminal hand
ii  liboaf0                  0.6.10-2        The GNOME Object Activation Framew
ii  liborbit0                0.5.16-1        Libraries for ORBit - a CORBA ORB
ii  libpanel-applet0         1.4.0.8-3       Library for Gnome Panel applets
ii  libpng2                  1.0.12-3        PNG library - runtime
ii  libtiff3g                3.5.5-6         Tag Image File Format library
ii  libungif4g               4.1.0b1-2       shared library for GIF images (run
ii  libxml1                  1:1.8.17-2      GNOME XML library
ii  oaf                      0.6.10-2        The GNOME Object Activation Framew
ii  scrollkeeper             0.3.8-1         A free electronic cataloging syste
ii  xlibs                    4.1.0-17        X Window System client libraries
ii  zlib1g                   1:1.1.4-1       compression library - runtime

-- no debconf information


---------------------------------------
Received: (at 149691-done) by bugs.debian.org; 16 Nov 2003 22:00:14 +0000
>From ross@burtonini.com Sun Nov 16 16:00:14 2003
Return-path: <ross@burtonini.com>
Received: from mrburns.nildram.co.uk (smithers.nildram.co.uk) [195.112.4.54] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1ALUwH-0004r6-00; Sun, 16 Nov 2003 16:00:13 -0600
Received: from burtonini.com (81-6-242-76.dyn.gotadsl.co.uk [81.6.242.76])
	by smithers.nildram.co.uk (Postfix) with ESMTP id 613C524F97A
	for <149691-done@bugs.debian.org>; Sun, 16 Nov 2003 22:00:08 +0000 (GMT)
Received: from 127.0.0.1 (ident=unknown) by burtonini.com with esmtp
 (masqmail 0.2.20) id 1ALUwG-1Nc-00 for <149691-done@bugs.debian.org>;
 Sun, 16 Nov 2003 22:00:12 +0000
Subject: Closing
From: Ross Burton <ross@burtonini.com>
To: 149691-done@bugs.debian.org
Content-Type: text/plain
Message-Id: <1069020012.4908.21.camel@localhost.localnet>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.5 
Date: Sun, 16 Nov 2003 22:00:12 +0000
Content-Transfer-Encoding: 7bit
Delivered-To: 149691-done@bugs.debian.org
X-Spam-Status: No, hits=0.0 required=4.0
	tests=none
	version=2.53-bugs.debian.org_2003_11_15
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_11_15 (1.174.2.15-2003-03-30-exp)

Zenity does The Right Thing which is wrapping as required, hard-breaking
when a newline is specified.

Ross
-- 
Ross Burton                                 mail: ross@burtonini.com
                                          jabber: ross@burtonini.com
                                     www: http://www.burtonini.com./
 PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF