diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-09-02 23:14:59 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-09-02 23:14:59 +0200 |
commit | c9b3d208e1b1211c79efb0aca2ec066d168bca3d (patch) | |
tree | 7cfd4079973682d981df08da0ce57dada5db4db4 | |
parent | 8c3f6420f3f97ca2e36dcb109e51837ab454a042 (diff) | |
parent | 126216eda00167171b375840fecd0f20be7d9b3c (diff) |
Merge pull request #65248 from Mickeon/docs-improve-icons-non-breaking-space
-rw-r--r-- | editor/editor_help.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/editor/editor_help.cpp b/editor/editor_help.cpp index 97f5363bb8..de89cd8df4 100644 --- a/editor/editor_help.cpp +++ b/editor/editor_help.cpp @@ -567,6 +567,8 @@ void EditorHelp::_update_doc() { class_desc->pop(); // font class_desc->add_newline(); + const String non_breaking_space = String::chr(160); + // Inheritance tree // Ascendents @@ -579,7 +581,7 @@ void EditorHelp::_update_doc() { while (!inherits.is_empty()) { _add_type_icon(inherits); - class_desc->add_text(" "); // Extra space, otherwise icon borrows hyperlink from _add_type(). + class_desc->add_text(non_breaking_space); // Otherwise icon borrows hyperlink from _add_type(). _add_type(inherits); inherits = doc->class_list[inherits].inherits; @@ -612,7 +614,7 @@ void EditorHelp::_update_doc() { class_desc->add_text(" , "); } _add_type_icon(E.value.name); - class_desc->add_text(" "); // Extra space, otherwise icon borrows hyperlink from _add_type(). + class_desc->add_text(non_breaking_space); // Otherwise icon borrows hyperlink from _add_type(). _add_type(E.value.name); prev = true; } |