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.
This commit is contained in:
Basil L. Contovounesios 2020-05-24 22:10:54 +01:00
parent 0195809bb6
commit 4737d0af75

View file

@ -4698,10 +4698,7 @@ following modifiers can be used:
@table @asis @table @asis
@item @samp{0} @item @samp{0}
Use zero padding. Pad with zeros instead of the default spaces.
@item @samp{@ }
User space padding.
@item @samp{-} @item @samp{-}
Pad to the right. Pad to the right.
@ -4713,7 +4710,7 @@ Use upper case.
Use lower case. Use lower case.
@item @samp{<} @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{>} @item @samp{>}
Same as previous, but remove characters from the right. 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. lower case), then what happens is undefined.
As an example, @samp{"%<010b"} means ``insert the @samp{b} expansion, 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 it's more than ten characters, shorten by removing characters from the
left''. left.''
@node Checksum/Hash @node Checksum/Hash