Ignore:
Timestamp:
20 Apr 2020, 08:36:28 (5 years ago)
Author:
Henrik Bettermann
Message:

Don't render colon after fieldname if fieldname is a question.

File:
1 edited

Legend:

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

    r15889 r16061  
    652652            f_label = translate(widget.label.strip(), domain,
    653653                                target_language=lang)
    654             f_label = Paragraph('%s:' % f_label, ENTRY1_STYLE)
     654            colon = ':'
     655            if f_label[-1:] == '?':
     656                colon =''
     657            f_label = Paragraph('%s%s' % (f_label, colon), ENTRY1_STYLE)
    655658            f_text = translate(widget(), domain, target_language=lang)
    656659            f_text = format_html(f_text)
Note: See TracChangeset for help on using the changeset viewer.