[MlMt] Formatting correction feature?

Nils Blomqvist dassies at eml.cc
Sat Dec 19 03:06:15 EST 2020


On 17 Dec 2020, at 15:55, Nils Blomqvist wrote:

> On 17 Dec 2020, at 15:31, Steven M. Bellovin wrote:
>
>> On 17 Dec 2020, at 9:24, Nils Blomqvist wrote:
>>
>>> Steven M. Bellovin Thu, 29 Dec 2016 15:01:58 -0800:
>>>
>>>> Someone once showed me how to set up 'fmt' as a service -- you select
>>>> the text, right-click, and invoke this service; it wraps lines at 72
>>>> characters. If there's interest, I'll dig up the instructions on how to
>>>> do it.
>>>
>>> Here’s a reply from someone looking for ”wrap to n columns”.
>>>
>>> I tried the tip from Steven M. Bellovin, but I found it will strip away
>>> a lot of characters, probably Unicode ones.
>>>
>>> Anyone has a tip?
>>
>> The semester is about over; I may rewrite fmt to handle Unicode,
>> since it's been annoying me, too…
>
> After some digging I found https://unix.stackexchange.com/a/457147,
> recommending to install the Plan9 fmt port. I’ll give it a go another
> day.

Works great. I installed it according to the SE post. Here’s how the command
looks in the Automator workflow:

	PATH=/usr/local/bin:$PATH 9 fmt -w 72


More information about the mailmate mailing list