Fix editor tooltip formatting
Removed unnecessary word wrap which caused broken tags and general
ugliness. Fixes #24926
(cherry picked from commit 8b1b2f6a4c
)
This commit is contained in:
parent
adadff09b8
commit
cd25c9724f
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue