Roxen.git / server / modules / graphics / graphic_text.pike

version» Context lines:

Roxen.git/server/modules/graphics/graphic_text.pike:1:   // This is a roxen module. Copyright © 1996 - 2001, Roxen IS.   //    - constant cvs_version="$Id: graphic_text.pike,v 1.293 2003/10/03 11:40:41 wellhard Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.294 2003/10/16 11:46:13 anders Exp $";      #include <module.h>   inherit "module";         // ------------------- Module registration ---------------------      constant module_type = MODULE_TAG;   constant module_name = "Graphics: Graphic text";   constant module_doc =
Roxen.git/server/modules/graphics/graphic_text.pike:1057:    if(!has_value(arg[name], "\"")) ea+="\""+arg[name]+"\" ";    else if(!has_value(arg[name], "'")) ea+="'"+arg[name]+"' ";    else ea+="\""+replace(arg[name], "'", "&#39;")+"\" ";    m_delete(arg, name);    }       int xml=!m_delete(arg, "noxml");       if(!arg->border) arg->border="0";    +  int no_draw = !id->misc->generate_images;    if(arg->split)    {    string res="",split=arg->split;    if(lower_case(split)=="split") split=" ";    m_delete(arg,"split");    c=replace(c, "\n", " ");    int setalt=!arg->alt;    foreach(c/split-({""}), string word)    {    string fn = image_cache->store( ({ p, word }),id ); -  mapping size = image_cache->metadata( fn, id, 1 ); +  mapping size = image_cache->metadata( fn, id, no_draw);    if(setalt) arg->alt=word;    arg->src=query_absolute_internal_location(id)+fn+ext;    if( size )    {    arg->width = (string)size->xsize;    arg->height = (string)size->ysize;    }    else {    m_delete (arg, "width");    m_delete (arg, "height");    }    res+=Roxen.make_tag( "img", arg, xml )+" ";    }    return sprintf(lp,res);    }       string num = image_cache->store( ({ p, c }), id ); -  mapping size = image_cache->metadata( num, id, 1 ); +  mapping size = image_cache->metadata( num, id, no_draw );    if(!arg->alt) arg->alt=replace(c,"\"","'");       arg->src=query_absolute_internal_location(id)+num+ext;    if(size) {    arg->width=(string)size->xsize;    arg->height=(string)size->ysize;    }       if(arg->magic)    {