Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fmt
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
fmt
Commits
ba95e36a
Commit
ba95e36a
authored
Aug 19, 2018
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify that '\0' cannot be used as fill (#832)
parent
abde38b4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
doc/syntax.rst
doc/syntax.rst
+6
-6
No files found.
doc/syntax.rst
View file @
ba95e36a
...
@@ -76,7 +76,7 @@ The general form of a *standard format specifier* is:
...
@@ -76,7 +76,7 @@ The general form of a *standard format specifier* is:
.. productionlist:: sf
.. productionlist:: sf
format_spec: [[`fill`]`align`][`sign`]["#"]["0"][`width`]["." `precision`][`type`]
format_spec: [[`fill`]`align`][`sign`]["#"]["0"][`width`]["." `precision`][`type`]
fill: <a character other than '{'
or '}
'>
fill: <a character other than '{'
, '}' or '\0
'>
align: "<" | ">" | "=" | "^"
align: "<" | ">" | "=" | "^"
sign: "+" | "-" | " "
sign: "+" | "-" | " "
width: `integer` | "{" `arg_id` "}"
width: `integer` | "{" `arg_id` "}"
...
@@ -84,11 +84,11 @@ The general form of a *standard format specifier* is:
...
@@ -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"
type: `int_type` | "a" | "A" | "c" | "e" | "E" | "f" | "F" | "g" | "G" | "p" | "s"
int_type: "b" | "B" | "d" | "n" | "o" | "x" | "X"
int_type: "b" | "B" | "d" | "n" | "o" | "x" | "X"
The *fill* character can be any character other than '{'
or '}'. The presenc
e
The *fill* character can be any character other than '{'
, '}' or '\\0'. Th
e
of a fill character is signaled by the character following it, which must be
presence of a fill character is signaled by the character following it, which
one of the alignment options. If the second character of *format_spec* is not
must be one of the alignment options. If the second character of *format_spec*
a valid alignment option, then it is assumed that both the fill character and
is not a valid alignment option, then it is assumed that both the fill character
the alignment option are absent.
and
the alignment option are absent.
The meaning of the various alignment options is as follows:
The meaning of the various alignment options is as follows:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment