diff --git a/apps/code/variable_box_controller.cpp b/apps/code/variable_box_controller.cpp index 3f39d0b1d..efd79388a 100644 --- a/apps/code/variable_box_controller.cpp +++ b/apps/code/variable_box_controller.cpp @@ -636,7 +636,7 @@ void VariableBoxController::loadCurrentVariablesInScript(const char * scriptCont } if (strncmp(fixedTokenInText, name, nameLength) != 0) { fixedTokenInText = tokenInText; - while (*fixedTokenInText == ' ') { + while (*fixedTokenInText == ' ' || *fixedTokenInText == '\n') { fixedTokenInText++; } }