diff --git a/func.ahk b/func.ahk index c0bcb1d..0fb36aa 100644 --- a/func.ahk +++ b/func.ahk @@ -90,6 +90,7 @@ ini_writeValue(location, inKey, inValue) needle := inKey . "=.*" replacement := inKey . "=" . inValue tempini := RegExReplace(tempini, needle, replacement,, 1) + tempini := RegExReplace(tempini, "\R+\R", "`r`n") WinWaitNotActive, GloVar.ini FileAppend, %tempini%, tempini ; Append the fixed ini to a new file FileCopy, tempini, %location%, 1 ; Copy the file over, overwriting existing contents