aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWuzzy <wuzzy2@mail.ru>2019-03-17 13:55:02 +0100
committerSmallJoker <SmallJoker@users.noreply.github.com>2019-03-17 13:55:02 +0100
commit9f1b98b9978fa90dc939663a73f17727f9e32425 (patch)
tree57334b4686c908c5c5f2be2ad4e30c3a46b6308f /src
parentd50feb89debf209a11426b2e8f44d90d64ed6cc2 (diff)
downloadminetest-9f1b98b9978fa90dc939663a73f17727f9e32425.tar.gz
minetest-9f1b98b9978fa90dc939663a73f17727f9e32425.tar.bz2
minetest-9f1b98b9978fa90dc939663a73f17727f9e32425.zip
Add newline before itemstring in item tooltip (#8213)
Diffstat (limited to 'src')
-rw-r--r--src/gui/guiFormSpecMenu.cpp2
1 files changed, 1 insertions, 1 deletions
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()) {