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:
parent
230eb262e2
commit
615ffb3507
2 changed files with 15 additions and 0 deletions
|
|
@ -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>");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue