Branch: Tag:

1997-09-26

1997-09-26 17:49:20 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed a couple of bugs.
alt now works with split.

Rev: server/modules/graphics/graphic_text.pike:1.82

1: - constant cvs_version="$Id: graphic_text.pike,v 1.81 1997/09/26 17:39:18 grubba Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.82 1997/09/26 17:49:20 grubba Exp $";   constant thread_safe=1;      #include <module.h>
1146:    if(split)    {    string word; -  array res = ({pre}); -  string pre = query_location()+num+"/"; +  array res = ({ pre }); +  string pre = query_location() + num + "/";       if(lp) res+=({ lp });   
1166:    }    foreach (arr, word) {    array size = write_text(num,word,1,id); -  res += ({ "<img _parsed=1 border=0 alt=\""+replace(word,"\"","'") -  +"\" src=\""+pre+quote(word)+"\" width="+ -  size[0]+" height="+size[1]+" "+ea+">\n" +  res += ({ "<img _parsed=1 border=0 alt=\"" + +  replace(arg->alt || word, "\"", "'") + +  "\" src=\"" + pre + quote(word) + "\" width=" + +  size[0] + " height=" + size[1] + " " + ea + ">"    });    } -  +  res += ({"\n"});    } else {    array size = write_text(num,word,1,id); -  res += ({ "<img _parsed=1 border=0 alt=\""+replace(word,"\"","'") -  +"\" src=\""+pre+quote(word)+"\" width="+ -  size[0]+" height="+size[1]+" "+ea+">\n" +  res += ({ "<img _parsed=1 border=0 alt=\"" + +  replace(arg->alt || word, "\"", "'") + +  "\" src=\"" + pre + quote(word) + "\" width=" + +  size[0] + " height=" + size[1] + " " + ea + ">\n"    });    }    } -  if(lp) res+=({ "</a>"+post }); +  if(lp) res += ({ "</a>"+post });    return res*"";    }