29 Nov
2004
29 Nov
'04
7:44 p.m.
Hi, Am Montag, den 29.11.2004, 19:48 +0100 schrieb baptiste Ancey:
Hi,
I just want to make a python script which generate an html balise. like: generateTable('toto') return "<table><tr><td>toto</td>... etc"
but when i want to use it in a span (span tal:content="generateTable...") all the html are change like that : <table border='1'>
Can you help me to prevent that.
Apart from the structure keyword mentioned in all the other posts, it might be well worth thinking about if you need it in the first place. Why not just generate a list or list of lists and use the template (or a macro) to generate the table? Building of HTML in a python script with string concenation is usually a kludge. Regards Tino