Commit 14876efb133fde3bbfe86840bbaf7335af61bc89

Authored by David RENÉ
1 parent 18f12e79

[FIX] infinite loop on text(List(CoreAttrs) attrs, Int i) which called itself -> infinite loop

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
web/CXM_making_a_web_site.anubis
@@ -2061,8 +2061,8 @@ public type HTML_Off_Form: @@ -2061,8 +2061,8 @@ public type HTML_Off_Form:
2061 . 2061 .
2062 2062
2063 'HTML_Off_Form' defines all the elements you may put outside any form. 2063 'HTML_Off_Form' defines all the elements you may put outside any form.
2064 -  
2065 -public define HTML_Off_Form text(List(CoreAttrs) attrs, Int i) = text(attrs, i). 2064 +
  2065 +public define HTML_Off_Form text(List(CoreAttrs) attrs, Int i) = text(attrs, to_decimal(i)).
2066 public define HTML_Off_Form text(CoreAttrs attr, Int i) = text([attr], i). 2066 public define HTML_Off_Form text(CoreAttrs attr, Int i) = text([attr], i).
2067 public define HTML_Off_Form text(Int i) = text([], i). 2067 public define HTML_Off_Form text(Int i) = text([], i).
2068 public define HTML_Off_Form text(String s) = text([], s). 2068 public define HTML_Off_Form text(String s) = text([], s).