From b8d29b5c66d7e90e6cdb8d044ce60fcd6504e331 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Tue, 25 Jun 2019 12:57:35 +0200 Subject: [PATCH] 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. (cherry picked from commit 615ffb350702976983a6b5d1df0847d07b99e121) --- doc/classes/TextEdit.xml | 2 +- editor/doc/doc_data.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/classes/TextEdit.xml b/doc/classes/TextEdit.xml index 30eb8960d0e..79f0d7565ea 100644 --- a/doc/classes/TextEdit.xml +++ b/doc/classes/TextEdit.xml @@ -552,7 +552,7 @@ - Sets the [StyleBox] of this [TextEdit] when [member read_only] is enabled. + Sets the [StyleBox] of this [TextEdit] when [member readonly] is enabled. diff --git a/editor/doc/doc_data.cpp b/editor/doc/doc_data.cpp index 30d2af3a72a..316adaecf54 100644 --- a/editor/doc/doc_data.cpp +++ b/editor/doc/doc_data.cpp @@ -1127,6 +1127,7 @@ Error DocData::save_classes(const String &p_default_path, const Map"); + _write_string(f, 3, p.description.strip_edges().xml_escape()); _write_string(f, 2, ""); } _write_string(f, 1, "");