fix(print): Added properties page-width, page-height (#16045)
This commit is contained in:
parent
bedf60280f
commit
f4518e2cf9
1 changed files with 1 additions and 1 deletions
|
|
@ -155,7 +155,7 @@ def read_options_from_html(html):
|
|||
toggle_visible_pdf(soup)
|
||||
|
||||
# use regex instead of soup-parser
|
||||
for attr in ("margin-top", "margin-bottom", "margin-left", "margin-right", "page-size", "header-spacing", "orientation"):
|
||||
for attr in ("margin-top", "margin-bottom", "margin-left", "margin-right", "page-size", "header-spacing", "orientation", "page-width", "page-height"):
|
||||
try:
|
||||
pattern = re.compile(r"(\.print-format)([\S|\s][^}]*?)(" + str(attr) + r":)(.+)(mm;)")
|
||||
match = pattern.findall(html)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue