Ignore:
Timestamp:
8 Feb 2016, 17:13:42 (9 years ago)
Author:
Henrik Bettermann
Message:

Very long matriculation numbers need to be wrapped on slips.

File:
1 edited

Legend:

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

    r13574 r13665  
    8686    if text == 'None':
    8787        text = ''
     88    # Very long matriculation numbers need to be wrapped
     89    if text.find(' ') == -1 and len(text.split('/')) > 6:
     90        text = '/'.join(text.split('/')[:5]) + \
     91            '/ ' + '/'.join(text.split('/')[5:])
    8892    # Mainly for boolean values we need our customized
    8993    # localisation of the zope domain
Note: See TracChangeset for help on using the changeset viewer.