Branch: Tag:

2015-08-24

2015-08-24 12:03:32 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Tools.Standalone.autodoc_to_html: Take advantage of the RFC redirect.

Reduce knowledge about the site structure at http://pike.lysator.liu.se/
by taking advantage of the automatic RFC redirect at the site.

593:    string section;    sscanf(rfc, "%[0-9]:%[.A-Z0-9]", rfc, section);    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"); +  ret->add("<b><a href='http://pike.lysator.liu.se/rfc", rfc, ".xml");    if( section && sizeof(section) )    ret->add("#", section);    else