[formatter] add 'W' conversion - sanitize whitespace (#6582)

https://github.com/mikf/gallery-dl/issues/6582#issuecomment-3090777073
This commit is contained in:
Mike Fährmann
2025-07-19 21:44:55 +02:00
parent 7bb4053396
commit 240f958707
3 changed files with 13 additions and 2 deletions

View File

@@ -541,6 +541,7 @@ _CONVERSIONS = {
"U": text.unescape,
"H": lambda s: text.unescape(text.remove_html(s)),
"g": text.slugify,
"W": text.sanitize_whitespace,
"S": util.to_string,
"s": str,
"r": repr,