Changeset 14065


Ignore:
Timestamp:
9 Aug 2016, 19:17:24 (8 years ago)
Author:
Henrik Bettermann
Message:

Use topMargin parameter instead of inserting a spacer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/pdf.py

    r14063 r14065  
    129129        doc_title = '\n'.join([x.strip() for x in self.title.split(' - ')])
    130130        data = []
     131        topMargin = 1.5
    131132        if len(self.title.split(' - ')) > 2:
    132             data.append(Spacer(1, 20))
     133            topMargin = 1.8
    133134        portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
    134135        separators = getUtility(IApplicantsUtils).SEPARATORS_DICT
     
    204205            note = login_information
    205206
    206         return creator.create_pdf(data, None, doc_title, note=note)
     207        return creator.create_pdf(data, None, doc_title, note=note,
     208            topMargin=topMargin)
Note: See TracChangeset for help on using the changeset viewer.