aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBasil L. Contovounesios2020-05-24 22:10:54 +0100
committerBasil L. Contovounesios2020-05-24 22:17:53 +0100
commit4737d0af7583f18424e2e0957fddb16228d33530 (patch)
treef3107d1d41e03915504e50b1b232b0016979ef43
parent0195809bb652df1e11f8768860e954b6c4398dee (diff)
downloademacs-4737d0af7583f18424e2e0957fddb16228d33530.tar.gz
emacs-4737d0af7583f18424e2e0957fddb16228d33530.zip
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.
-rw-r--r--doc/lispref/text.texi11
1 files changed, 4 insertions, 7 deletions
diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi
index 58424a4231b..aeb56202852 100644
--- a/doc/lispref/text.texi
+++ b/doc/lispref/text.texi
@@ -4698,10 +4698,7 @@ following modifiers can be used:
4698 4698
4699@table @asis 4699@table @asis
4700@item @samp{0} 4700@item @samp{0}
4701Use zero padding. 4701Pad with zeros instead of the default spaces.
4702
4703@item @samp{@ }
4704User space padding.
4705 4702
4706@item @samp{-} 4703@item @samp{-}
4707Pad to the right. 4704Pad to the right.
@@ -4713,7 +4710,7 @@ Use upper case.
4713Use lower case. 4710Use lower case.
4714 4711
4715@item @samp{<} 4712@item @samp{<}
4716If the length needs to limited, remove characters from the left. 4713If the length needs to be limited, remove characters from the left.
4717 4714
4718@item @samp{>} 4715@item @samp{>}
4719Same as previous, but remove characters from the right. 4716Same as previous, but remove characters from the right.
@@ -4723,9 +4720,9 @@ If contradictory modifiers are used (for instance, both upper and
4723lower case), then what happens is undefined. 4720lower case), then what happens is undefined.
4724 4721
4725As an example, @samp{"%<010b"} means ``insert the @samp{b} expansion, 4722As an example, @samp{"%<010b"} means ``insert the @samp{b} expansion,
4726but pad with leading zeroes if it's less than ten characters, and if 4723but pad with leading zeros if it's less than ten characters, and if
4727it's more than ten characters, shorten by removing characters from the 4724it's more than ten characters, shorten by removing characters from the
4728left''. 4725left.''
4729 4726
4730 4727
4731@node Checksum/Hash 4728@node Checksum/Hash