Commits

Michael P. Jung  committed 90777c2

Fix rendering of the item table without a period

  • Participants
  • Parent commits 7ab8d40
  • Tags v0.1.3

Comments (0)

Files changed (2)

File dinbrief/__init__.py

-__version__ = '0.1.2'
+__version__ = '0.1.3'

File dinbrief/invoice/item_table.py

             yield (
                 Number(unicode(item.position)),
                 Cell(escape(item.text)),
-                Cell(escape(item.period)),
+                Cell(escape(item.period) if item.period else u''),
                 Number(u'%s €' % number_format(item.price, 2)),
                 Cell((u'/%s' % escape(item.get_unit_display()))
                     if item.unit else u''),