From cd25c9724fa58a666806a7ef8edc946c1ec2e979 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/property_editor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/property_editor.cpp b/editor/property_editor.cpp index 84fef07070e..ac87e2ce193 100644 --- a/editor/property_editor.cpp +++ b/editor/property_editor.cpp @@ -2845,7 +2845,7 @@ void PropertyEditor::update_tree() { if (E) { descr = E->get().brief_description; } - class_descr_cache[type] = descr.word_wrap(80); + class_descr_cache[type] = descr; } sep->set_tooltip(0, TTR("Class:") + " " + p.name + (class_descr_cache[type] == "" ? "" : "\n\n" + class_descr_cache[type])); @@ -2972,7 +2972,7 @@ void PropertyEditor::update_tree() { while (E && descr == String()) { for (int i = 0; i < E->get().properties.size(); i++) { if (E->get().properties[i].name == propname.operator String()) { - descr = E->get().properties[i].description.strip_edges().word_wrap(80); + descr = E->get().properties[i].description.strip_edges(); break; } }