[formatter] implement 'A' format specifier (#6036)

This commit is contained in:
Mike Fährmann
2024-08-16 20:34:23 +02:00
parent 01e8433889
commit 78ae0ba9f7
3 changed files with 30 additions and 0 deletions

View File

@@ -202,6 +202,12 @@ Format specifiers can be used for advanced formatting by using the options provi
<td><code>{foo:Ro/()/}</code></td>
<td><code>F()()&nbsp;Bar</code></td>
</tr>
<tr>
<td><code>A&lt;op&gt;&lt;value&gt;/</code></td>
<td>Apply arithmetic operation <code>&lt;op&gt;</code> (<code>+</code>, <code>-</code>, <code>*</code>) to the current value</td>
<td><code>{num:A+1/}</code></td>
<td><code>"2"</code></td>
</tr>
<tr>
<td><code>C&lt;conversion(s)&gt;/</code></td>
<td>Apply <a href="#conversions">Conversions</a> to the current value</td>