#571807 upstream: enhancements about folding long lines

Package:
less
Source:
less
Description:
pager program similar to more
Submitter:
Marc Haber
Date:
2010-02-28 07:54:11 UTC
Severity:
wishlist
#571807#5
Date:
2010-02-28 07:45:29 UTC
From:
To:
Hi,

this is an upstream issue, but I didn't find any way on
greenwoodsoftware.com/less/index.html to add new items to the
enhancement list which is posted there. I hope that you know how to
file upstream bugs and would be so kind to forward this suggestion
upstream.

I would like less's fold long lines code to adopt the following new
options:

(1)
An option to cause folding to happen at the last whitespace that would
still fit in the previous line, avoiding folding to happen in the
middle of a word. This would be a new option (--fold-at-whitespace?) with
the default off

(2)
An option to make the non-first lines of a folded input lines not
start at screen column n instead of the first screen column, causing
an indent of the following lines. That way, one could for example less
through a syslog with folded lines with a display like this:
Feb 28 08:32:44 swivel named[19227]: success resolving 'www.l.google.com/AAAA'
                       (in 'google.com'?) after reducing the advertised EDNS UDP
		       packet size to 512 octets
Feb 28 08:35:01 swivel /USR/SBIN/CRON[10907]: (root) CMD (if [ -x
                       /etc/munin/plugins/apt_all ]; then
		       /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif
		       [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt
		       update 7200 12 >/dev/null; fi)
Feb 28 08:35:01 swivel /USR/SBIN/CRON[10908]: (munin) CMD (if
                       [ -x /usr/local/bin/munin-cron ]; then
		       /usr/local/bin/munin-cron; fi)
Feb 28 08:35:46 swivel named[19227]: success resolving 'www.l.google.com/AAAA'
                       (in 'google.com'?) after disabling EDNS
Feb 28 08:36:12 swivel named[19227]: success resolving 'www.l.google.com/AAAA'
                       (in 'google.com'?) after reducing the advertised EDNS UDP
		       packet size to 512 octets

This would greatly enhance the readability.

Greetings
Marc