Changeset 11898 for main/waeup.kwarapoly


Ignore:
Timestamp:
28 Oct 2014, 23:14:55 (10 years ago)
Author:
uli
Message:

Use shorter expression.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kwarapoly/branches/uli-crs-reg-slip/src/waeup/kwarapoly/students/browser.py

    r11887 r11898  
    321321                               (Signature, 'dummy', 3),
    322322                               ])
    323         if len(self.label.split('\n')) == 3:
    324             topMargin = 1.9
    325         elif len(self.label.split('\n')) == 2:
    326             topMargin = 1.7
    327         else:
    328             topMargin = 1.5
     323        topMargin = 1.5 + (self.label.count('\n') * 0.2)
    329324        return students_utils.renderPDF(
    330325            self, 'course_registration_slip.pdf',
Note: See TracChangeset for help on using the changeset viewer.