summaryrefslogtreecommitdiff
path: root/editor/doc
diff options
context:
space:
mode:
authorBojidar Marinov <bojidar.marinov.bg@gmail.com>2019-07-12 21:17:12 +0300
committerBojidar Marinov <bojidar.marinov.bg@gmail.com>2019-07-12 21:17:12 +0300
commitf451a4028217c13506f5f34ce78cd2d3f73f2f9f (patch)
treed571c9e5e678397070a197ee0842d21dcaa021d2 /editor/doc
parent3bfffcc568d87342e867f95c35a4a19e09072189 (diff)
Fix huge multiline default values being generated
Diffstat (limited to 'editor/doc')
-rw-r--r--editor/doc/doc_data.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/doc/doc_data.cpp b/editor/doc/doc_data.cpp
index 6ee07d3661..4b4baba67b 100644
--- a/editor/doc/doc_data.cpp
+++ b/editor/doc/doc_data.cpp
@@ -266,8 +266,8 @@ void DocData::generate(bool p_basic_types) {
}
}
- if (default_value_valid) {
- prop.default_value = default_value.get_construct_string();
+ if (default_value_valid && default_value.get_type() != Variant::OBJECT) {
+ prop.default_value = default_value.get_construct_string().replace("\n", "");
}
bool found_type = false;