From 8fa3a9db6b0bc212cbe04539354c511c976adc7c Mon Sep 17 00:00:00 2001 From: claustromaniac <20734810+claustromaniac@users.noreply.github.com> Date: Sat, 21 Apr 2018 14:34:08 +0000 Subject: [PATCH] fix for missing empty lines --- prefsCleaner.bat | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/prefsCleaner.bat b/prefsCleaner.bat index b74317f..b5ff0dc 100644 --- a/prefsCleaner.bat +++ b/prefsCleaner.bat @@ -70,9 +70,13 @@ REM ######### Cleanup Function ########## IF NOT ""=="%%G" (SET "[%%G]=1") ) FOR /F "tokens=1,* delims=:" %%G IN ('FINDSTR /N "^" prefs.js') DO ( - FOR /F tokens^=1^,2^ delims^=^" %%I IN ("%%H") DO ( - IF NOT DEFINED [%%J] ( - ECHO:%%H + IF ""=="%%H" ( + ECHO: + ) ELSE ( + FOR /F tokens^=1^,2^ delims^=^" %%I IN ("%%H") DO ( + IF NOT DEFINED [%%J] ( + ECHO:%%H + ) ) ) )