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:117:    Node dummy = Node(XML_ELEMENT, "dummy", ([]), "");    foreach(n->get_elements(), Node c)    switch(c->get_any_name()) {       case "p":    dummy->replace_children( ({ c }) );    ret += parse_text(dummy);    break;       case "example": -  ret += "<p><pre>" + c->value_of_node() + "</pre></p>\n"; +  ret += "<p><pre>" + quote(c->value_of_node()) + "</pre></p>\n";    break;       case "ul":    case "ol":    ret += (string)c;    break;       case "dl":    ret += "<dl>\n";    foreach(c->get_elements(), Node cc) {
pike.git/lib/modules/Tools.pmod/Standalone.pmod/autodoc_to_html.pike:476:    else    rows += ({ ({ elems }) });    }    nicebox(rows, ret);   }      //! Typically called with a <group/> node or a sub-node that is a container.   string parse_text(Node n, void|String.Buffer ret) {    if(n->get_node_type()==XML_TEXT && n->get_text()) {    if(ret) -  ret->add(quote(n->get_test())); +  ret->add(quote(n->get_text()));    else    return quote(n->get_text());    }       int cast;    if(!ret) {    ret = String.Buffer();    cast = 1;    }