Roxen.git / server / base_server / rxmlhelp.pike

version» Context lines:

Roxen.git/server/base_server/rxmlhelp.pike:50:    if(m->cont &&    m->tag) type = "both";    if(m->plugin) type = "plugin";    if(m->ent) type = "entity";    if(m->scope) type = "scope";    if(m->pi) type = "pi";    if(m->type) type = m->type;    switch(type)    {    case "tag": rt = sprintf("&lt;%s/&gt;", rt); break; -  case "cont": rt = sprintf("&lt;%s/&gt; or " +  case "cont": rt = sprintf("&lt;%s&gt;&lt;/%s&gt;", rt, rt); break; +  case "both": rt = sprintf("&lt;%s/&gt; or "    "&lt;%s&gt;&lt;/%s&gt;",    rt, rt, rt); break; -  case "both": rt = sprintf("&lt;%s&gt;&lt;/%s&gt;", rt, rt); break; +     case "plugin": rt = replace(rt, "#", " plugin "); break;    //case "entity": rt = rt; break;    case "scope": rt = rt[..sizeof(rt)-2] + " ... ;";    case "pi": rt = "&lt;" + rt + " ... ?&gt;";    }    return sprintf("<h2>%s</h2><p>%s</p>", rt, c);   }      static string attr_cont(Parser.HTML parser, mapping m, string c)   {