[formatter] add 'Xb' format specifier - 'X' for bytes (#6582)
https://github.com/mikf/gallery-dl/issues/6582#issuecomment-3479362186
This commit is contained in:
@@ -303,6 +303,16 @@ Format specifiers can be used for advanced formatting by using the options provi
|
||||
<td><code>{foo:X6/ .../}</code></td>
|
||||
<td><code>Fo ...</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td rowspan="2"><code>Xb<maxlen>/<ext>/</code></td>
|
||||
<td rowspan="2">Same as <code>X</code>, but applies to the <a href="https://docs.python.org/3/library/stdtypes.html#bytes"><code>bytes()</code></a> representation of a string in <a href="https://docs.python.org/3/library/sys.html#sys.getfilesystemencoding">filesystem encoding</a></td>
|
||||
<td><code>{foo_ja:Xb15/〜/}</code></td>
|
||||
<td><code>フー・バー</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>{foo_ja:Xb8/〜/}</code></td>
|
||||
<td><code>フ〜</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>J<separator>/</code></td>
|
||||
<td>Concatenates elements of a list with <code><separator></code> using <a href="https://docs.python.org/3/library/stdtypes.html#str.join" rel="nofollow"><code>str.join()</code></a></td>
|
||||
|
||||
Reference in New Issue
Block a user