From 9aaae19b540ed67216268ed37eb9f26a096bf3b7 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sun, 11 Oct 2020 01:35:56 +0200 Subject: [PATCH] fix print w vars in lua --- client/src/scripting.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/scripting.c b/client/src/scripting.c index 69e8436c5..4bd3e17a0 100644 --- a/client/src/scripting.c +++ b/client/src/scripting.c @@ -1244,13 +1244,13 @@ static int l_cwd(lua_State *L) { // ref: https://github.com/RfidResearchGroup/proxmark3/issues/891 // redirect LUA's print to Proxmark3 PrintAndLogEx static int l_printandlogex(lua_State *L) { - - int n = lua_gettop(L); + int n = lua_gettop(L); for (int i = 1; i <= n; i++) { if (lua_isstring(L, i)) { - PrintAndLogEx(NORMAL, "%s", lua_tostring(L, i)); + PrintAndLogEx(NORMAL, "%s\t" NOLF, lua_tostring(L, i) ); } } + PrintAndLogEx(NORMAL, ""); return 0; }