pike.git / lib / modules / Tools.pmod / Standalone.pmod / autodoc_to_html.pike

version» Context lines:

pike.git/lib/modules/Tools.pmod/Standalone.pmod/autodoc_to_html.pike:580:    if(resolve_reference) {    ret->add(resolve_reference(parse_text(c), c->get_attributes()));    break;    }    string ref;    //ref = c->get_attributes()->resolved;    if(!ref) ref = parse_text(c);    ret->add("<font face='courier'>", ref, "</font>");    break;    +  case "rfc": +  string rfc = parse_text(c); +  sscanf(rfc, "%[0-9]", rfc); +  if (sizeof(rfc) < 4) rfc = ("0000" + rfc)[<3..]; +  ret->add("<b><a href='http://pike.lysator.liu.se/docs/ietf/rfc/", +  rfc[..<2], "/rfc", rfc, ".xml'>RFC ", rfc, "</a></b>"); +  break; +     case "dl":    ret->add("<dl>", map(c->get_elements("group"), parse_text)*"", "</dl>");    break;       case "item":    if(c->get_attributes()->name) {    ret->add("<dt>", c->get_attributes()->name, "</dt>\n");    if(c->count_children() &&    ((flags & (Tools.AutoDoc.FLAG_KEEP_GOING|Tools.AutoDoc.FLAG_DEBUG)) ==    Tools.AutoDoc.FLAG_DEBUG)) {