Skip to content
Snippets Groups Projects

Add python-magic as external dependency and fix print-paper-size metadata

Merged oury.balde requested to merge topic/17.0/fsb into branch/17.0
3 files
+ 10
5
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -146,5 +146,5 @@
# Get print-paper-size values
if pf.format and pf.orientation:
metadata_values["print-paper-size",] = f"{pf.format} {pf.orientation}"
metadata_values["print-paper-size"] = f"{pf.format} {pf.orientation}"
elif pf.format and not pf.orientation:
@@ -150,4 +150,4 @@
elif pf.format and not pf.orientation:
metadata_values["print-paper-size",] = f"{pf.format}"
metadata_values["print-paper-size"] = f"{pf.format}"
# Get print-paper-margin values: top | right | bottom | left
@@ -152,6 +152,6 @@
# Get print-paper-margin values: top | right | bottom | left
metadata_values["print-paper-margin",] = (
metadata_values["print-paper-margin"] = (
f"{pf.margin_top} {pf.margin_right} {pf.margin_bottom} {pf.margin_left}"
)
Loading