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:579:    //ref = c->get_attributes()->resolved;    if(!ref) ref = parse_text(c);    ret->add("<font face='courier'>", ref, "</font>");    break;       case "dl":    ret->add("<dl>", map(c->get_elements("group"), parse_text)*"", "</dl>");    break;       case "item": -  if(c->get_attributes()->name) +  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)) {    error( "dl item has a child.\n" );    } -  +  } else if (c->count_children()) { +  ret->add("<dt>"); +  parse_text(c, ret); +  ret->add("</dt>"); +  }    break;       case "mapping":    build_box(c, ret, "group", "member",    lambda(Node n) {    string res = "";    Node nn = n->get_first_element("index");    if (nn) {    res +=    "<font color='green'>" + parse_text(nn) + "</font> : ";