coreutils
[Top][All Lists]
Advanced

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

Question about fold


From: Moritz Poldrack
Subject: Question about fold
Date: Fri, 29 Jul 2022 08:25:22 +0200

Hello,

I want to use fold to wrap plaintext emails that are not wrapped
properly, I've run into an issue where, when run with -s, links that
exceed the maximum width are still wrapped and therefore break. Is this
intended behaviour?

For example 
        Lorem ipsum dolor sit amet, consectetur adipiscing elit.

        
https://www.kernel.org/doc/html/latest/process/submitting-patches.html#describe-your-changes

processed using fold -w 20 -s test.txt results in
        Lorem ipsum dolor 
        sit amet, 
        consectetur 
        adipiscing elit.

        https://www.kernel.o
        rg/doc/html/latest/p
        rocess/submitting-pa
        tches.html#describe-
        your-changes

which is unexpected since a forced cutoff is not mentioned in the
manpage. Am I missing something or is there a way to achieve that?

-- 
Moritz Poldrack
https://moritz.sh

Attachment: signature.asc
Description: PGP signature


reply via email to

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