From ba95e36a583e803d7d9e4d0b3a8ca6f1471cf5f4 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 19 Aug 2018 08:37:40 -0700 Subject: [PATCH] Clarify that '\0' cannot be used as fill (#832) --- doc/syntax.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/syntax.rst b/doc/syntax.rst index 706b4bd3..fc27c5e2 100644 --- a/doc/syntax.rst +++ b/doc/syntax.rst @@ -76,7 +76,7 @@ The general form of a *standard format specifier* is: .. productionlist:: sf format_spec: [[`fill`]`align`][`sign`]["#"]["0"][`width`]["." `precision`][`type`] - fill: + fill: align: "<" | ">" | "=" | "^" sign: "+" | "-" | " " width: `integer` | "{" `arg_id` "}" @@ -84,11 +84,11 @@ The general form of a *standard format specifier* is: type: `int_type` | "a" | "A" | "c" | "e" | "E" | "f" | "F" | "g" | "G" | "p" | "s" int_type: "b" | "B" | "d" | "n" | "o" | "x" | "X" -The *fill* character can be any character other than '{' or '}'. The presence -of a fill character is signaled by the character following it, which must be -one of the alignment options. If the second character of *format_spec* is not -a valid alignment option, then it is assumed that both the fill character and -the alignment option are absent. +The *fill* character can be any character other than '{', '}' or '\\0'. The +presence of a fill character is signaled by the character following it, which +must be one of the alignment options. If the second character of *format_spec* +is not a valid alignment option, then it is assumed that both the fill character +and the alignment option are absent. The meaning of the various alignment options is as follows: