Commit 3d5125cd authored by Victor Zverovich's avatar Victor Zverovich

Update paper

parent d775a20f
...@@ -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>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment