diff --git a/wiki/macro/TV.py b/wiki/macro/TV.py index 71d86811..d209885d 100644 --- a/wiki/macro/TV.py +++ b/wiki/macro/TV.py @@ -42,7 +42,7 @@ def get_channel_list(): def execute(macro, args): - opt = {"col":4,"cat":False,"ch":False, "width":"4em"} + opt = {"col":4,"cat":False,"ch":False, "width":"10em"} # parse args if args: try: @@ -75,7 +75,7 @@ def execute(macro, args): text+= macro.formatter.linebreak( 0 ) #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="width:%s;" % IMAGE_WIDTH ) text+= macro.formatter.linebreak( 0 ) text+= macro.formatter.text( "Regarder maintenant" ) text+= macro.formatter.url(0)