GNOME Bugzilla – Bug 570375
GOption should wrap lines
Last modified: 2018-05-24 11:44:25 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
Created attachment 127880 [details] [review] a first try at implementing this
Created attachment 127887 [details] [review] proposed patch This patch acts on the translated description rather than on the original one only.
Btw, if the patch is approved, I am able to commit, and would prefer doing it myself =).
Is there a reason why this was not merged? GOption is still not a suitable replacement for libpopt because of this missing feature.
-- 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.