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 570375 - GOption should wrap lines
GOption should wrap lines
Status: RESOLVED OBSOLETE
Product: glib
Classification: Platform
Component: general
unspecified
Other All
: Normal enhancement
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2009-02-03 15:09 UTC by Gustavo Noronha (kov)
Modified: 2018-05-24 11:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
a first try at implementing this (4.21 KB, patch)
2009-02-03 22:31 UTC, Gustavo Noronha (kov)
none Details | Review
proposed patch (4.23 KB, patch)
2009-02-03 23:15 UTC, Gustavo Noronha (kov)
none Details | Review

Description Gustavo Noronha (kov) 2009-02-03 15:09:20 UTC
This bug has been reported in Debian, and confirmed by me. When a line gets too long GOption does nothing special to it, so you end up getting bad looking output, with your terminal "wrapping" the lines. GOption should probably check the COLUMNS environment variable and try to break the description nicely, making sure the additional lines are correctly "indented".

See the output of glib-mkenums --help in a 80-column terminal to see the problem, and the ouput of ls --help to see a good output format.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=361105
Comment 1 Gustavo Noronha (kov) 2009-02-03 22:31:52 UTC
Created attachment 127880 [details] [review]
a first try at implementing this
Comment 2 Gustavo Noronha (kov) 2009-02-03 23:15:10 UTC
Created attachment 127887 [details] [review]
proposed patch

This patch acts on the translated description rather than on the original one only.
Comment 3 Gustavo Noronha (kov) 2009-02-03 23:15:53 UTC
Btw, if the patch is approved, I am able to commit, and would prefer doing it myself =).
Comment 4 Krzysztof Kosiński 2013-09-26 23:41:54 UTC
Is there a reason why this was not merged?

GOption is still not a suitable replacement for libpopt because of this missing feature.
Comment 5 GNOME Infrastructure Team 2018-05-24 11:44:25 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/glib/issues/194.