Merge pull request #30544 from bojidar-bg/30537-huge-default-values

Fix huge multiline default values being generated
This commit is contained in:
Rémi Verschelde 2019-07-15 08:16:43 +02:00 committed by GitHub
commit 158feb4194
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;