Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
daemondazz committed Aug 22, 2022
1 parent 6453d34 commit b2c7e78
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions trml2pdf/doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ def __init__(self, out, node, doc):
pts = node.getElementsByTagName('pageTemplate')
for pt in pts:
if not pt.hasAttribute('pageSize'):
pageSize = (utils.unit_get('21cm'), utils.unit_get('29.7cm'))
else:
ps = [x.strip() for x in pt.getAttribute('pageSize').replace(')', '').replace(
pageSize = (utils.unit_get('21cm'), utils.unit_get('29.7cm'))
else:
ps = [x.strip() for x in pt.getAttribute('pageSize').replace(')', '').replace(
'(', '').split(',')]
pageSize = (utils.unit_get(ps[0]), utils.unit_get(ps[1]))
pageSize = (utils.unit_get(ps[0]), utils.unit_get(ps[1]))
frames = []
for frame_el in pt.getElementsByTagName('frame'):
frame = platypus.Frame(**(utils.attr_get(
Expand Down

0 comments on commit b2c7e78

Please sign in to comment.