diff options
| author | Basil L. Contovounesios | 2020-05-24 22:10:54 +0100 |
|---|---|---|
| committer | Basil L. Contovounesios | 2020-05-24 22:17:53 +0100 |
| commit | 4737d0af7583f18424e2e0957fddb16228d33530 (patch) | |
| tree | f3107d1d41e03915504e50b1b232b0016979ef43 | |
| parent | 0195809bb652df1e11f8768860e954b6c4398dee (diff) | |
| download | emacs-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.texi | 11 |
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} |
| 4701 | Use zero padding. | 4701 | Pad with zeros instead of the default spaces. |
| 4702 | |||
| 4703 | @item @samp{@ } | ||
| 4704 | User space padding. | ||
| 4705 | 4702 | ||
| 4706 | @item @samp{-} | 4703 | @item @samp{-} |
| 4707 | Pad to the right. | 4704 | Pad to the right. |
| @@ -4713,7 +4710,7 @@ Use upper case. | |||
| 4713 | Use lower case. | 4710 | Use lower case. |
| 4714 | 4711 | ||
| 4715 | @item @samp{<} | 4712 | @item @samp{<} |
| 4716 | If the length needs to limited, remove characters from the left. | 4713 | If the length needs to be limited, remove characters from the left. |
| 4717 | 4714 | ||
| 4718 | @item @samp{>} | 4715 | @item @samp{>} |
| 4719 | Same as previous, but remove characters from the right. | 4716 | Same as previous, but remove characters from the right. |
| @@ -4723,9 +4720,9 @@ If contradictory modifiers are used (for instance, both upper and | |||
| 4723 | lower case), then what happens is undefined. | 4720 | lower case), then what happens is undefined. |
| 4724 | 4721 | ||
| 4725 | As an example, @samp{"%<010b"} means ``insert the @samp{b} expansion, | 4722 | As an example, @samp{"%<010b"} means ``insert the @samp{b} expansion, |
| 4726 | but pad with leading zeroes if it's less than ten characters, and if | 4723 | but pad with leading zeros if it's less than ten characters, and if |
| 4727 | it's more than ten characters, shorten by removing characters from the | 4724 | it's more than ten characters, shorten by removing characters from the |
| 4728 | left''. | 4725 | left.'' |
| 4729 | 4726 | ||
| 4730 | 4727 | ||
| 4731 | @node Checksum/Hash | 4728 | @node Checksum/Hash |