On Apr 3, 2014, at 5:56 PM, Rob Landley <[email protected]> wrote:
> The -u option to fold isn't currently being used...
> 
> Could you describe a little more how unfold would work?

Generally, I write papers and such in a text editor with hard wrapping, like 
nano, and then transfer them to LibreOffice for formatting. So I go from 
newline after X columns and a blank line between paragraphs to long lines with 
a single newline between paragraphs. The simplest algorithm would be to remove 
all newlines except double newlines (and convert those to single). If -s was 
specified, we would only remove newlines after spaces and tabs (or unless there 
was no space in that line). Finally, if -w was specified, we would re-wrap at 
that width.

> Rob

Regards,
Samuel Holland <[email protected]>

_______________________________________________
Toybox mailing list
[email protected]
http://lists.landley.net/listinfo.cgi/toybox-landley.net

Reply via email to