diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-06-25 12:57:35 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2019-06-25 13:08:15 +0200 |
commit | 615ffb350702976983a6b5d1df0847d07b99e121 (patch) | |
tree | 6ba3e387d12e0d8b0c747a76c779632d51a962ec /editor/doc | |
parent | 230eb262e239c48f20eb085424e5d45f6b785a9a (diff) |
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.
Diffstat (limited to 'editor/doc')
-rw-r--r-- | editor/doc/doc_data.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/doc/doc_data.cpp b/editor/doc/doc_data.cpp index 7d2159d365..041f81d063 100644 --- a/editor/doc/doc_data.cpp +++ b/editor/doc/doc_data.cpp @@ -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>"); |