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 - 2000, Idonex AB.   //    - constant cvs_version="$Id: graphic_text.pike,v 1.204 2000/02/16 14:20:28 per Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.205 2000/02/19 06:12:32 nilsson Exp $";      #include <module.h>   inherit "module";   inherit "roxenlib";         // ------------------- Module registration ---------------------      constant module_type = MODULE_PARSER;   constant module_name = "Graphics text";
Roxen.git/server/modules/graphics/graphic_text.pike:325:    if(id->misc->defines->black && !p->black) p->black=id->misc->gtext_black;    if(id->misc->defines->narrow && !p->narrow) p->narrow=id->misc->gtext_narrow;       return p;   }      string fix_text(string c, mapping m, RequestID id) {       if(m->nowhitespace)    { -  sscanf(c,"%*[ \n\r\t]%s",c); -  sscanf(reverse(c),"%*[ \n\r\t]%s",c); -  c=reverse(c); +  c=String.trim_all_whites(c);    m_delete(m, "nowhitespace");    }       if(!m->noparse && !m->preparse)    c = parse_rxml(c, id);    else {    m_delete(m, "noparse");    m_delete(m, "preparse");    }    -  +  c=html_decode_string(c); +  +  if(m->maxlen) {    c = c[..(((int)m->maxlen||QUERY(deflen))-1)];    m_delete(m, "maxlen"); -  +  }       return c;   }         // ----------------- gtext tags and containers -------------------      string container_gtext_url(string t, mapping arg, string c, RequestID id) {    c=fix_text(c,arg,id);    mapping p=mk_gtext_arg(arg,id);