From 3c4a248abd2c5cc1d84447403608119cfc9e0cd1 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 26 Feb 2014 15:11:17 +0100 Subject: [PATCH] Fixes #3290: Support for Przyporzadkuj with short items. --- librarian/pyhtml.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/librarian/pyhtml.py b/librarian/pyhtml.py index f6dfdf5..9264c15 100644 --- a/librarian/pyhtml.py +++ b/librarian/pyhtml.py @@ -564,6 +564,8 @@ class Przyporzadkuj(Exercise): 'data-target': lista.attrib['cel'], 'class': 'subject' } + if lista.attrib.get('krotkie'): + self.options = {'short': True} self.options = {'subject': True} else: attrs = {} @@ -576,7 +578,10 @@ class Przyporzadkuj(Exercise): if self.options['handles']: return '
  • %s' % (element.attrib.get('rozw', ''), self.piece_counter, self.piece_counter), '
  • ' else: - return '
  • ' % (element.attrib.get('rozw', ''), self.piece_counter), '
  • ' + extra_class = "" + if self.options['short']: + extra_class += ' short' + return '
  • ' % (element.attrib.get('rozw', ''), self.piece_counter, extra_class), '
  • ' elif self.options['predicate']: if self.options['min']: -- 2.20.1