From: Wuzzy Date: Sun, 17 Mar 2019 12:55:02 +0000 (+0100) Subject: Add newline before itemstring in item tooltip (#8213) X-Git-Tag: 5.1.0~269 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9f1b98b9978fa90dc939663a73f17727f9e32425;p=oweals%2Fminetest.git Add newline before itemstring in item tooltip (#8213) --- diff --git a/src/gui/guiFormSpecMenu.cpp b/src/gui/guiFormSpecMenu.cpp index 6c404728f..54434931e 100644 --- a/src/gui/guiFormSpecMenu.cpp +++ b/src/gui/guiFormSpecMenu.cpp @@ -2425,7 +2425,7 @@ void GUIFormSpecMenu::drawList(const ListDrawSpec &s, int layer, if (tooltip_text.empty()) tooltip_text = utf8_to_wide(item.name); else if (m_tooltip_append_itemname) - tooltip_text += utf8_to_wide(" [" + item.name + "]"); + tooltip_text += utf8_to_wide("\n[" + item.name + "]"); } } if (!tooltip_text.empty()) {