Branch: Tag:

2011-11-18

2011-11-18 19:42:40 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Tools.Standalone.autodoc_to_html: Improved diagnostics for broken variable markup.

1151:    ret += "<tt>";    cc = c->get_first_element("modifiers");    if(cc) ret += map(cc->get_children(), parse_type)*" " + " "; -  ret += parse_type(get_first_element(c->get_first_element("type")), "variable") + " " + -  c->get_attributes()->class_path + "<b><font color='#F000F0'>" + c->get_attributes()->name + -  "</font></b></tt>"; +  if (c->get_first_element("type")) { +  ret += parse_type(get_first_element(c->get_first_element("type")), +  "variable") + " " + +  c->get_attributes()->class_path + "<b><font color='#F000F0'>" + +  c->get_attributes()->name + "</font></b></tt>"; +  } else +  error("Malformed variable element.\n" + c->html_of_node() + "\n");    break;       case "constant":