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 - 2004, Roxen IS.   //    - constant cvs_version="$Id: graphic_text.pike,v 1.302 2006/09/13 14:48:17 stewa Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.303 2007/09/05 14:37:00 mathias 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:1119:    if(arg[name]) {    ea+=name+"=";    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"; +  // No border should be used for <img>. Force CSS declaration to avoid +  // borders when gtext is clickable. +  m_delete(arg, "border"); +  arg->style = "border: none;" + (arg->style || "");       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)