From f673bc1e3da10bdccecac2ffbbe7ab51666ffc72 Mon Sep 17 00:00:00 2001 From: James Buck Date: Sat, 20 Apr 2019 11:44:00 -0500 Subject: [PATCH] Fix editor tooltip formatting Removed unnecessary word wrap which caused broken tags and general ugliness. Fixes #24926 (cherry picked from commit 8b1b2f6a4cfb65d186097e29d4979838e9114685) --- editor/editor_inspector.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp index 60fa5ff16f2..38e4272ab1e 100644 --- a/editor/editor_inspector.cpp +++ b/editor/editor_inspector.cpp @@ -1499,7 +1499,7 @@ void EditorInspector::update_tree() { if (E) { descr = E->get().brief_description; } - class_descr_cache[type2] = descr.word_wrap(80); + class_descr_cache[type2] = descr; } category->set_tooltip(p.name + "::" + (class_descr_cache[type2] == "" ? "" : class_descr_cache[type2])); @@ -1651,7 +1651,7 @@ void EditorInspector::update_tree() { while (F && descr == String()) { for (int i = 0; i < F->get().properties.size(); i++) { if (F->get().properties[i].name == propname.operator String()) { - descr = F->get().properties[i].description.strip_edges().word_wrap(80); + descr = F->get().properties[i].description.strip_edges(); break; } }