You may add the colspan attribute to a cell by using the HTML.TableCell class with the attribs parameter, for example:
table_data = [ [HTML.TableCell('test colspan', attribs={'colspan':2}), 'other cell'], ['Last name', 'First name', 'Age'], ['Smith', 'John', 30], ['Carpenter', 'Jack', 47], ] htmlcode = HTML.table(table_data) print htmlcode
<code>
<blockcode>
<foo>
[foo]
Plus d'informations sur les options de formatage
How to add the colspan attribute for a cell
You may add the colspan attribute to a cell by using the HTML.TableCell class with the attribs parameter, for example:
table_data = [ [HTML.TableCell('test colspan', attribs={'colspan':2}), 'other cell'], ['Last name', 'First name', 'Age'], ['Smith', 'John', 30], ['Carpenter', 'Jack', 47], ] htmlcode = HTML.table(table_data) print htmlcode