def __call__(self, field, class_='<STR_LIT>', row_class='<STR_LIT>', **kwargs):
html = []<EOL>hidden = '<STR_LIT>'<EOL>arguments = self.defaults<EOL>arguments.update(kwargs)<EOL>classes = arguments.get('<STR_LIT>', {})<EOL>for i, subfield in enumerate(field):<EOL><INDENT>if subfield.type == '<STR_LIT>':<EOL><INDENT>hidden += text_type(subfield)<EOL><DEDENT>else:<EOL><INDENT>wrapper_class = classes.get(i, '<STR_LIT>')<EOL>html.append('<STR_LIT>' % (<EOL>hidden,<EOL>wrapper_class,<EOL>text_type(subfield(<EOL>class_=class_,<EOL>placeholder=subfield.label.text))))<EOL>hidden = '<STR_LIT>'<EOL><DEDENT><DEDENT>if hidden:<EOL><INDENT>html.append(hidden)<EOL><DEDENT>return HTMLString('<STR_LIT>' % (row_class, ) +<EOL>'<STR_LIT>'.join(html) + '<STR_LIT>')<EOL>
There are Bootstrap 3 specific improvements for row wrapping.