summaryrefslogtreecommitdiffstats
path: root/gallery_dl/option.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2025-03-01 19:51:39 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2025-03-01 19:51:39 -0500
commit889c7b8caec8fc0b9c7a583ed1d9cfa43518fc42 (patch)
treecff4a7de7032843e4efe521d92dfce485ae944f1 /gallery_dl/option.py
parenta26df18796ff4e506b16bf32fcec9336233b9e2e (diff)
New upstream version 1.29.0.upstream/1.29.0
Diffstat (limited to 'gallery_dl/option.py')
-rw-r--r--gallery_dl/option.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/gallery_dl/option.py b/gallery_dl/option.py
index 222679a..3c03271 100644
--- a/gallery_dl/option.py
+++ b/gallery_dl/option.py
@@ -179,11 +179,15 @@ class PrintAction(argparse.Action):
if not format_string:
return
- if "{" not in format_string and \
- " " not in format_string and \
- format_string[0] != "\f":
- format_string = "{" + format_string + "}"
- if format_string[-1] != "\n":
+ if format_string.startswith("\\f"):
+ format_string = "\f" + format_string[2:]
+
+ if format_string[0] == "\f":
+ if format_string[1] == "F" and format_string[-1] != "\n":
+ format_string += "\n"
+ elif "{" not in format_string and " " not in format_string:
+ format_string = "{" + format_string + "}\n"
+ elif format_string[-1] != "\n":
format_string += "\n"
namespace.postprocessors.append({