bug-textutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

suggestion for new feature to fold


From: Christian Groessler
Subject: suggestion for new feature to fold
Date: 09 Feb 2001 12:46:59 +0100

Hi,

I've added a switch "-i" (for indent) to let fold indent the
continuation lines of wrapped lines.

The idea is to get nicer output when used together with nl.

Previously, when line numbering was used and overlong lines were
wrapped, either (depending on the order or fold and nl in the pipe)
the line numbers won't reflect the real file line numbers, or the
wrapped line would go into the line numbers column.

E.g.
nl file | fold
would give for line 102

  102  very long line .. very long line .. very long line .. 
very long line .. 

now, with -i,
nl file | fold -i 11
gives

  102  very long line .. very long line .. very long line .. 
       very long line ..


Please consider my patch for integration.

regards,
chris


Attachment: fold-patch.gz
Description: fold-patch


reply via email to

[Prev in Thread] Current Thread [Next in Thread]