]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
doc: Fix documentation of gettext, ngettext programs.
authorBruno Haible <bruno@clisp.org>
Mon, 19 Aug 2019 08:24:30 +0000 (10:24 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 13 Apr 2020 11:08:21 +0000 (13:08 +0200)
* gettext-runtime/doc/rt-gettext.texi: Clarify when the additional newline is
emitted.
* gettext-runtime/doc/rt-ngettext.texi: Remove '\c' from the list of recognized
escape sequences.

gettext-runtime/doc/rt-gettext.texi
gettext-runtime/doc/rt-ngettext.texi

index 4cb3fb02b4c9b2e76efe78bafba7b7d409c0b48c..dc6a9769302211a6db7b82e2cf34f831cb14b197 100644 (file)
@@ -51,8 +51,8 @@ Display this help and exit.
 
 @item -n
 @opindex -n@r{, @code{gettext} option}
-Suppress trailing newline.  By default, @code{gettext} adds a newline to
-the output.
+This option has only an effect if the @code{-s} option is given.  It
+suppresses the additional newline at the end.
 
 @item -V
 @itemx --version
@@ -72,4 +72,7 @@ environment variable @code{TEXTDOMAINDIR}.
 
 When used with the @code{-s} option the program behaves like the @samp{echo}
 command.  But it does not simply copy its arguments to stdout.  Instead those
-messages found in the selected catalog are translated.
+messages found in the selected catalog are translated.  Also, a newline is
+added at the end, unless either the option @code{-n} is specified or the
+option @code{-e} is specified and some of the argument strings contains a
+@samp{\c} escape sequence.
index 9b66159eb314e406479afbc8e42b0bdef7632ab2..abdcc9adb9ac92e8f852e33de72723f0f425486b 100644 (file)
@@ -33,7 +33,7 @@ corresponds to a package, a program, or a module of a program.
 @opindex -e@r{, @code{ngettext} option}
 Enable expansion of some escape sequences.  This option is for compatibility
 with the @samp{gettext} program.  The escape sequences
-@samp{\a}, @samp{\b}, @samp{\c}, @samp{\f}, @samp{\n}, @samp{\r}, @samp{\t},
+@samp{\a}, @samp{\b}, @samp{\f}, @samp{\n}, @samp{\r}, @samp{\t},
 @samp{\v}, @samp{\\}, and @samp{\} followed by one to three octal digits, are
 interpreted like the System V @samp{echo} program did.