Add newline before itemstring in item tooltip (#8213)
authorWuzzy <wuzzy2@mail.ru>
Sun, 17 Mar 2019 12:55:02 +0000 (13:55 +0100)
committerSmallJoker <SmallJoker@users.noreply.github.com>
Sun, 17 Mar 2019 12:55:02 +0000 (13:55 +0100)
src/gui/guiFormSpecMenu.cpp

index 6c404728fcc7a8ea15a945c2c0f6b5d396b4cfe0..54434931e9f12616dd728ae608e89214a4adb011 100644 (file)
@@ -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()) {