doctool: Fix writing theme_item descriptions
We already had support for parsing and saving theme_item descriptions in DocData, and displaying it in the editor, but doctool would drop the changes as it was not writing them back to the XML. Part of #29868.
This commit is contained in:
@ -1126,6 +1126,7 @@ Error DocData::save_classes(const String &p_default_path, const Map<String, Stri
|
||||
|
||||
const PropertyDoc &p = c.theme_properties[i];
|
||||
_write_string(f, 2, "<theme_item name=\"" + p.name + "\" type=\"" + p.type + "\">");
|
||||
_write_string(f, 3, p.description.strip_edges().xml_escape());
|
||||
_write_string(f, 2, "</theme_item>");
|
||||
}
|
||||
_write_string(f, 1, "</theme_items>");
|
||||
|
||||
Reference in New Issue
Block a user