Changeset 11875


Ignore:
Timestamp:
24 Oct 2014, 12:47:13 (10 years ago)
Author:
Henrik Bettermann
Message:

Add 'Text before student data' on admission slip only if not empty string.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py

    r11772 r11875  
    634634        else:
    635635            html = format_html(pre_text)
    636         data.append(Paragraph(html, NOTE_STYLE))
    637         data.append(Spacer(1, 20))
     636        if html:
     637            data.append(Paragraph(html, NOTE_STYLE))
     638            data.append(Spacer(1, 20))
    638639
    639640        # Student data
Note: See TracChangeset for help on using the changeset viewer.