add note about using '\f' in shells to docs/formatting.md

(closes #2398, closes #2406)
This commit is contained in:
Mike Fährmann 2022-03-17 23:09:25 +01:00
parent d04e07d93b
commit 58e0b17211
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -212,3 +212,12 @@ Starting a format string with '\f<Type> ' allows to set a different format strin
</tbody>
</table>
> **Note:**
>
> `\f` is the [Form Feed](https://en.wikipedia.org/w/index.php?title=Page_break&oldid=1027475805#Form_feed)
> character. (ASCII code 12 or 0xc)
>
> Writing it as `\f` is native to JSON, but will *not* get interpreted
> as such by most shells. To use this character there:
> * hold `Ctrl`, then press `v` followed by `l`, resulting in `^L` or
> * use `echo` or `printf` (e.g. `gallery-dl -f "$(echo -ne \\fM) my_module:generate_text"`)