disvers correction de style

+ utilisation de la bonne version du formatteur

darcs-hash:20061207113530-f46e9-d0c2a6c1e46904a08d70e21b9ab8f2b7b9909922.gz
This commit is contained in:
gdetrez 2006-12-07 12:35:30 +01:00
parent 7140c3c706
commit 308dd1a2e8

View file

@ -60,12 +60,12 @@ def execute(macro, args):
text = macro.formatter.table(1,{}) text = macro.formatter.table(1,{})
i = 0 i = 0
for a_channel in ch_list: for a_channel in ch_list:
if CATHEGORY: if CATHEGORY:
if not a_channel["name"].startswith(CATHEGORY): if not a_channel["name"].startswith(CATHEGORY):
continue continue
if CHANNEL: if CHANNEL:
if a_channel["name"].find(CHANNEL)<0: if a_channel["name"].find(CHANNEL)<0:
continue continue
if i == 0: if i == 0:
text+= macro.formatter.table_row(1) text+= macro.formatter.table_row(1)
text+= macro.formatter.table_cell(1, {'style':'text-align:center;'}) text+= macro.formatter.table_cell(1, {'style':'text-align:center;'})
@ -73,7 +73,8 @@ def execute(macro, args):
text+= macro.formatter.text( a_channel["name"] ) text+= macro.formatter.text( a_channel["name"] )
text+= macro.formatter.strong( 0 ) text+= macro.formatter.strong( 0 )
text+= macro.formatter.linebreak( 0 ) text+= macro.formatter.linebreak( 0 )
text+= macro.formatter.url(1, href=a_channel["url"], style="text-decoration:none;") #text+= macro.formatter.url(1, href=a_channel["url"], style="text-decoration:none;")
text+= macro.formatter.url(1, url=a_channel["url"], style="text-decoration:none;")
text+= macro.formatter.image( src=a_channel["image_url"], alt="No image", style='%s' % IMAGE_WIDTH ) text+= macro.formatter.image( src=a_channel["image_url"], alt="No image", style='%s' % IMAGE_WIDTH )
text+= macro.formatter.linebreak( 0 ) text+= macro.formatter.linebreak( 0 )
text+= macro.formatter.text( "Regarder maintenant" ) text+= macro.formatter.text( "Regarder maintenant" )