nano-devel
[Top][All Lists]
Advanced

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

Re: [Nano-devel] RFC: nano's justifications are poorer than those of Pic


From: Benno Schulenberg
Subject: Re: [Nano-devel] RFC: nano's justifications are poorer than those of Pico -- okay to improve?
Date: Sun, 20 May 2018 20:21:41 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0

Op 19-05-18 om 18:03 schreef Benno Schulenberg:
> But with the new rule of "no indent change after the second line"
> that won't happen.  What seems to be needed, when autoindent and
> automatic hard-wrapping are on (the latter won't be on when writing
> code, only for prose), is that an automatic spillover from a line
> should not get the indentation of the current line but of the next
> line.

To qualify: when the current line is the beginning of a paragraph,
then a new line should get the indentation of the next line; when
the current line is not the beginning of a paragraph, then a new
line should get the indentation of the current line.  That is for
automatic hard-wrapping.  But when the user types <Enter>, she
most likely wants to start a new paragraph, and then the new line
should get the indentation of the next line if that next line is
the beginning of a paragraph; otherwise the new line should just
get the indentation of the current line.

A line is the beginning of a paragraph if it contains text AND
1) the preceding line has no text or does not exist, or
2) the preceding line has a different indentation and the line
before it has that same indentation, or
3) the preceding line has a different indentation and the line
before that a different one from that and the line before that
has no text, or
4) the three preceding lines have varying indentations and the
indentation of the current line is bigger than that of the
directly preceding line.

Have I missed anything?

Benno

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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