add function to remove extra empty lines from ini when writing
This commit is contained in:
parent
64d7d9dc0a
commit
ace6f712cd
1
func.ahk
1
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
|
||||
|
Loading…
Reference in New Issue
Block a user