From 8e63d22d6472b61477f804dc5b00705650f90409 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Mon, 9 Dec 2019 21:05:07 +0000 Subject: [PATCH] Fix spaces breaking formspec_version[] tag --- src/gui/guiFormSpecMenu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/guiFormSpecMenu.cpp b/src/gui/guiFormSpecMenu.cpp index 728747eb8..ab20840f9 100644 --- a/src/gui/guiFormSpecMenu.cpp +++ b/src/gui/guiFormSpecMenu.cpp @@ -2262,7 +2262,7 @@ bool GUIFormSpecMenu::parseVersionDirect(const std::string &data) return false; } - if (parts[0] != "formspec_version") { + if (trim(parts[0]) != "formspec_version") { return false; } -- 2.25.1