Branch: Tag:

1997-10-08

1997-10-08 03:05:29 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

bugfix :)

Rev: tutorial/Html.pmod:1.2
Rev: tutorial/Makefile:1.6
Rev: tutorial/Sgml.pmod:1.3
Rev: tutorial/Wmml.pmod:1.8
Rev: tutorial/html.pike:1.6
Rev: tutorial/tutorial.wmml:1.31
Rev: tutorial/types.h:1.2
Rev: tutorial/wmmltohtml2:1.3

53:    string ret="<"+tag;    foreach(indices(params),string i)    { -  ret+=" "+quote_param(i); +  ret+=" "+i;       if(stringp(params[i])) -  +  { +  switch(i) +  { +  case "href":    ret+="='"+quote_param(params[i])+"'"; -  +  break; +  +  default: +  if(search(params[i],"\"")==-1) +  ret+="=\""+params[i]+"\""; +  else if(search(params[i],"'")==-1) +  ret+="='"+params[i]+"'"; +  else +  ret+="=\""+replace(params[i],"\"","'")+"\"";    } -  +  } +  }    return ret+">";   }