emacs-diffs
[Top][All Lists]
Advanced

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

emacs-27 4737d0a: Fix Elisp manual entry for format-spec


From: Basil L. Contovounesios
Subject: emacs-27 4737d0a: Fix Elisp manual entry for format-spec
Date: Sun, 24 May 2020 17:25:21 -0400 (EDT)

branch: emacs-27
commit 4737d0af7583f18424e2e0957fddb16228d33530
Author: Basil L. Contovounesios <address@hidden>
Commit: Basil L. Contovounesios <address@hidden>

    Fix Elisp manual entry for format-spec
    
    * doc/lispref/text.texi (Interpolated Strings): Fix typos.  Don't
    document modifier for default space padding as it's redundant and
    inconsistent with the docstring and implementation of format-spec.
---
 doc/lispref/text.texi | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi
index 58424a4..aeb5620 100644
--- a/doc/lispref/text.texi
+++ b/doc/lispref/text.texi
@@ -4698,10 +4698,7 @@ following modifiers can be used:
 
 @table @asis
 @item @samp{0}
-Use zero padding.
-
-@item @samp{@ }
-User space padding.
+Pad with zeros instead of the default spaces.
 
 @item @samp{-}
 Pad to the right.
@@ -4713,7 +4710,7 @@ Use upper case.
 Use lower case.
 
 @item @samp{<}
-If the length needs to limited, remove characters from the left.
+If the length needs to be limited, remove characters from the left.
 
 @item @samp{>}
 Same as previous, but remove characters from the right.
@@ -4723,9 +4720,9 @@ If contradictory modifiers are used (for instance, both 
upper and
 lower case), then what happens is undefined.
 
 As an example, @samp{"%<010b"} means ``insert the @samp{b} expansion,
-but pad with leading zeroes if it's less than ten characters, and if
+but pad with leading zeros if it's less than ten characters, and if
 it's more than ten characters, shorten by removing characters from the
-left''.
+left.''
 
 
 @node Checksum/Hash



reply via email to

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