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
4dea3200
Commit
4dea3200
authored
Dec 12, 2012
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use parsed literal block for the grammar. Document 0 flag.
parent
36335275
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
README.rst
README.rst
+14
-8
No files found.
README.rst
View file @
4dea3200
...
@@ -79,14 +79,20 @@ braces ``{}``. Text outside of braces is copied unchanged to the output.
...
@@ -79,14 +79,20 @@ braces ``{}``. Text outside of braces is copied unchanged to the output.
If you need to include a brace character in the literal text, it can be
If you need to include a brace character in the literal text, it can be
escaped by doubling: ``{{`` and ``}}``.
escaped by doubling: ``{{`` and ``}}``.
The grammar for a replacement field is as follows::
The grammar for a replacement field is as follows:
replacement_field: "{" arg_index [":" format_spec] "}"
.. parsed-literal::
arg_index: integer
format_spec: ["+"]["0"][width]["." precision][type]
_`replacement_field`: "{" `arg_index`_ [":" `format_spec`_] "}"
width: integer
_`arg_index`: integer
precision: integer
_`format_spec`: ["+"]["0"][`width`_]["." `precision`_][`type`_]
type: "c" | "d" | "e" | "E" | "f" | "F" | "g" | "G" | "o" | "p" | "s" | "x" | "X"
_`width`: integer
_`precision`: integer | "{" `arg_index`_ "}"
_`type`: "c" | "d" | "e" | "E" | "f" | "F" | "g" | "G" | "o" | "p" | "s" | "x" | "X"
Preceding the `width`_ field with ``0`` makes the padding to be placed
after the sign (if any) but before the digits. This is used for printing
fields in the form ``+000000120``. This option is only valid for numeric types.
Motivation
Motivation
----------
----------
...
...
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