Branch: Tag:

2012-02-11

2012-02-11 11:24:05 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Partial revert "No more appendices"

Reenable support for appendices in compat mode.

This reverts some of commit f84c3f9aa94fba85439549b84ae2bd7a612dfde2.

233:    return ret;   }    + string parse_appendix(Node n, void|int noheader) { +  string ret =""; +  if(!noheader) +  ret += "<dl><dt>" +  "<table width='100%' cellpadding='3' cellspacing='0' border='0'><tr>" +  "<td bgcolor='#EEEEEE'><font size='+3'>&nbsp; Appendix " + +  (string)({ 64+(int)n->get_attributes()->number }) + ". " + +  n->get_attributes()->name + "</font></td></tr></table><br />\n" +  "</dt><dd>"; +  +  Node c = n->get_first_element("doc"); +  if(c) +  ret += parse_text(c); +  else +  error( "No doc element in appendix.\n" ); +  + #ifdef DEBUG +  if(sizeof(n->get_elements("doc"))>1) +  error( "More than one doc element in appendix node.\n" ); + #endif +  +  if(!noheader) +  ret = ret + "</dd></dl>"; +  +  return ret; + } +    string parse_autodoc(Node n)   {    string ret ="";
1353:    cd(cwd);    break;    +  case "appendix": +  res += parse_appendix(c); +  break; +     case "chapter":    res += parse_chapter(c);    break;