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


fold-patch

Reply via email to