mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 10:47:35 +02:00
Cleanup syntax doc
This commit is contained in:
@ -91,11 +91,34 @@ the fill character 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:
|
||||||
|
|
||||||
| Option | Meaning |
|
<table>
|
||||||
|--------|--------------------------------------------------------------------------------------------------------|
|
<thead>
|
||||||
| `'<'` | Forces the field to be left-aligned within the available space (this is the default for most objects). |
|
<tr>
|
||||||
| `'>'` | Forces the field to be right-aligned within the available space (this is the default for numbers). |
|
<th>Option</th>
|
||||||
| `'^'` | Forces the field to be centered within the available space. |
|
<th>Meaning</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td><code>'<'</code></td>
|
||||||
|
<td>
|
||||||
|
Forces the field to be left-aligned within the available space (this is the
|
||||||
|
default for most objects).
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><code>'>'</code></td>
|
||||||
|
<td>
|
||||||
|
Forces the field to be right-aligned within the available space (this is
|
||||||
|
the default for numbers).
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><code>'^'</code></td>
|
||||||
|
<td>Forces the field to be centered within the available space.</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
Note that unless a minimum field width is defined, the field width will
|
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
|
always be the same size as the data to fill it, so that the alignment
|
||||||
|
Reference in New Issue
Block a user