From 9dc1343bda0592f2d27bb216eb21fdec97f73945 Mon Sep 17 00:00:00 2001 From: peterbell10 Date: Tue, 11 Jun 2019 13:39:44 +0100 Subject: Ignore whitespace only lines in brewing and furnace recipes (#4332) --- src/BrewingRecipes.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/BrewingRecipes.cpp') diff --git a/src/BrewingRecipes.cpp b/src/BrewingRecipes.cpp index 3f5173d3d..ca427f9cc 100644 --- a/src/BrewingRecipes.cpp +++ b/src/BrewingRecipes.cpp @@ -45,8 +45,9 @@ void cBrewingRecipes::ReloadRecipes(void) ParsingLine.erase(FirstCommentSymbol); } - if (ParsingLine.empty()) + if (IsOnlyWhitespace(ParsingLine)) { + // Ignore empty and whitespace only lines continue; } AddRecipeFromLine(ParsingLine, LineNum); -- cgit v1.2.3