commit 54cab0203075e8e2f5d50eceb9e38e7fc63982c0
parent 2633114b8ed60629a70d1c26ccf7eeb911ec879c
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Fri, 1 Jun 2018 15:50:47 +0200
docs: improve the description of --nonewlines, and properly sort it
Diffstat:
4 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/doc/nano.1 b/doc/nano.1
@@ -106,7 +106,7 @@ should only need to use this option if they don't, as mouse support
won't work properly with this option enabled.
.TP
.BR \-L ", " \-\-nonewlines
-Don't add newlines to the ends of files.
+Don't automatically add a newline when a file does not end with one.
.TP
.BR \-M ", " \-\-trimblanks
Snip trailing whitespace from the wrapped line when automatic
diff --git a/doc/nano.texi b/doc/nano.texi
@@ -198,7 +198,7 @@ won't work properly with this option enabled.
@item -L
@itemx --nonewlines
-Don't add newlines to the ends of files.
+Don't automatically add a newline when a file does not end with one.
@item -M
@itemx --trimblanks
@@ -806,13 +806,13 @@ Don't convert files from DOS/Mac format.
@item set nohelp
Don't display the help lists at the bottom of the screen.
+@item set nonewlines
+When a file does not end with a newline, don't automatically add one.
+
@item set nopauses
Don't pause between warnings at startup. This means that only
the last one will be visible (when there are multiple ones).
-@item set nonewlines
-Don't add newlines to the ends of files.
-
@item set nowrap
Don't hard-wrap text at all. This option conflicts with
@option{fill}; the last one given takes effect.
diff --git a/doc/nanorc.5 b/doc/nanorc.5
@@ -163,7 +163,7 @@ Don't convert files from DOS/Mac format.
Don't display the two help lines at the bottom of the screen.
.TP
.B set nonewlines
-Don't automatically add a newline to the ends of files.
+When a file does not end with a newline, don't automatically add one.
.TP
.B set nopauses
Don't pause between warnings at startup. This means that only
diff --git a/doc/sample.nanorc.in b/doc/sample.nanorc.in
@@ -93,13 +93,13 @@
## Don't display the helpful shortcut lists at the bottom of the screen.
# set nohelp
+## Don't automatically add a newline when a file does not end with one.
+# set nonewlines
+
## Don't pause between warnings at startup. Which means that only the
## last one will be readable (when there are multiple ones).
# set nopauses
-## Don't add newlines to the ends of files.
-# set nonewlines
-
## Don't wrap text at all.
# set nowrap