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

version» Context lines:

Roxen.git/server/modules/graphics/graphic_text.pike:1: - constant cvs_version="$Id: graphic_text.pike,v 1.123 1998/04/19 02:58:29 peter Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.124 1998/05/15 08:27:42 per Exp $";   constant thread_safe=1;      #include <module.h>   #include <stat.h>   inherit "module";   inherit "roxenlib";      #ifndef VAR_MORE   #define VAR_MORE 0   #endif /* VAR_MORE */
Roxen.git/server/modules/graphics/graphic_text.pike:1539:    FIX(link, "#0000b0",link);    FIX(alink, "#3f0f7b",alink);    FIX(vlink, "#ff0000",vlink);    } else {    FIX(bgcolor,"#c0c0c0",bg);    FIX(text, "#000000",fg);    FIX(link, "#0000ee",link);    FIX(alink, "#ff0000",alink);    FIX(vlink, "#551a8b",vlink);    } -  if(changed) return ({make_tag("body", args) }); +  if(changed) return ({make_tag("body", parse_rxml(args,id)) });   }         string|array(string) tag_fix_color(string tagname, mapping args, object id,    object file, mapping defines)   {    int changed;       if(args->help) return "This tag is parsed by &lt;gtext&gt; to get the document colors.";    if(!id->misc->colors)    id->misc->colors = ({ ({ defines->fg, defines->bg, tagname }) });    else    id->misc->colors += ({ ({ defines->fg, defines->bg, tagname }) });   #undef FIX   #define FIX(X,Y) if(args->X && args->X!=""){defines->Y=args->X;if(args->X[0]!='#'){args->X=ns_color(parse_color(args->X));changed = 1;}}       FIX(bgcolor,bg);    FIX(text,fg);    FIX(color,fg); -  if(changed) -  return ({"<"+tagname+" "+make_args(args)+">"}); +  +  if(changed) return ({ "<"+tagname+" "+make_args(parse_rxml(args,id))+">" });    return 0;   }      string|void pop_color(string tagname,mapping args,object id,object file,    mapping defines)   {    array c = id->misc->colors;    if(args->help) return "This end-tag is parsed by &lt;gtext&gt; to get the document colors.";    if(!c ||!sizeof(c))    return;