From 452bc79bfca4e95a210fad38bef7dc91937553ca Mon Sep 17 00:00:00 2001 From: totoro Date: Sat, 17 Oct 2015 23:08:49 +0200 Subject: [PATCH] fix some typo, remove alt attribute on html generation if the alt text is empty --- web/CXM_making_a_web_site.anubis | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/web/CXM_making_a_web_site.anubis b/web/CXM_making_a_web_site.anubis index 16679e4..5f330f0 100644 --- a/web/CXM_making_a_web_site.anubis +++ b/web/CXM_making_a_web_site.anubis @@ -974,27 +974,27 @@ public define Actioner_Aspect link(options, text, failure). public define Actioner_Aspect - link - ( - String text - ) = - link([], text, failure). + link + ( + String text + ) = + link([], text, failure). public define Actioner_Aspect - link - ( - List(Text_Option) options, - Int i - ) = - link(options,to_decimal(i), failure). + link + ( + List(Text_Option) options, + Int i + ) = + link(options, to_decimal(i), failure). public define Actioner_Aspect - link - ( - Int i - ) = - link([], i). + link + ( + Int i + ) = + link([], i). public define Actioner_Aspect button @@ -4186,8 +4186,9 @@ define Printable_tree //["
",s,"
"], any_paragraph(opts,e) then ["",format_element(e),"

\n"], - any_image(opts, url, alt) then - ["\"",alt,"\""], + any_image(opts, url, _alt) then + with alt = if _alt = "" then "" else "alt=\""+_alt+"\"", + [""], any_image(opts, url, alt, w, h) then ["\"",alt,"\""], any_table(opts,h_row, rows, f_row) then -- libgit2 0.21.4