nano-devel
[Top][All Lists]
Advanced

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

Re: Global tabgives and spacestotab config option


From: Benno Schulenberg
Subject: Re: Global tabgives and spacestotab config option
Date: Wed, 23 Jun 2021 11:06:10 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1

Op 22-06-2021 om 13:01 schreef Peter Magnusson:
> Thanks but unfortunately it didnt work, spaces never got converted and
> no errors.
> 
> $ nano.sh this-is-a-test-with-space
> $ cat this-is-a-test-with-space
> hello                this            is      a  few    or    more       spaces
> 
> some                         more space.

You haven't understood.  The script transforms only *leading* spaces
to tabs.  That is: only indentation.  Multiple spaces inside text are
probably meant for alignment, so it's not a good idea to change those.

If you had read the script, you could have told me that the comment
inside it is wrong.  Attached is the script with a correct comment.

Benno

Attachment: nano.sh
Description: application/shellscript

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

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