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
3d5125cd
Commit
3d5125cd
authored
Aug 25, 2016
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update paper
parent
d775a20f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
5 deletions
+37
-5
doc/Text Formatting.html
doc/Text Formatting.html
+37
-5
No files found.
doc/Text Formatting.html
View file @
3d5125cd
...
@@ -464,11 +464,9 @@ described in the next section.
...
@@ -464,11 +464,9 @@ described in the next section.
<p>
<p>
A
<code>
format-spec
</code>
field can also include nested replacement fields
A
<code>
format-spec
</code>
field can also include nested replacement fields
within it. These nested replacement fields can contain only an argument index;
in certain position within it. These nested replacement fields can contain only
format specifications are not allowed. Formatting is performed as if the
an argument index; format specifications are not allowed. This allows the
replacement fields within the
<code>
format-spec
</code>
are substituted before
formatting of a value to be dynamically specified.
the format-spec string is interpreted. This allows the formatting of a value
to be dynamically specified.
</p>
</p>
<h4><a
name=
"FormatSpec"
>
Format specification mini-language
</a></h4>
<h4><a
name=
"FormatSpec"
>
Format specification mini-language
</a></h4>
...
@@ -541,6 +539,40 @@ The meaning of the various alignment options is as follows:
...
@@ -541,6 +539,40 @@ The meaning of the various alignment options is as follows:
</tbody>
</tbody>
</table>
</table>
<p>
Note that unless a minimum field width is defined, the field width will always
be the same size as the data to fill it, so that the alignment option has no
meaning in this case.
</p>
<p>
The
<code>
sign
</code>
option is only valid for number types, and can be one of
the following:
</p>
<table>
<thead>
<tr><th>
Option
</th><th>
Meaning
</th></tr>
</thead>
<tbody>
<tr>
<td>
'+'
</td>
<td>
Indicates that a sign should be used for both positive as well as negative
numbers.
</td>
</tr>
<tr>
<td>
'-'
</td>
<td>
Indicates that a sign should be used only for negative numbers (this is
the default behavior).
</td>
</tr>
<tr>
<td>
space
</td>
<td>
Indicates that a leading space should be used on positive numbers, and a
minus sign on negative numbers.
</td>
</tr>
</tbody>
</table>
<p>
TODO
</p>
<p>
TODO
</p>
<h3>
Class
<code>
format_error
</code></h3>
<h3>
Class
<code>
format_error
</code></h3>
...
...
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