mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-07-01 02:22:34 -05:00
Save WinUtil's json strings with DOS-Style Newline Character (CRLF) instead of Unix-Style Newline Character (LF)
Originated from PR #2816 by @ruxunderscore
This commit is contained in:
@ -91,7 +91,7 @@ $($jsonAsObject | ConvertTo-Json -Depth 3)
|
|||||||
"@
|
"@
|
||||||
|
|
||||||
$sync.configs.$($psitem.BaseName) = $json | ConvertFrom-Json
|
$sync.configs.$($psitem.BaseName) = $json | ConvertFrom-Json
|
||||||
$script_content.Add($(Write-Output "`$sync.configs.$($psitem.BaseName) = @'`n$json`n'@ `| ConvertFrom-Json" ))
|
$script_content.Add($(Write-Output "`$sync.configs.$($psitem.BaseName) = @'`r`n$json`r`n'@ `| ConvertFrom-Json" ))
|
||||||
}
|
}
|
||||||
|
|
||||||
# Read the entire XAML file as a single string, preserving line breaks
|
# Read the entire XAML file as a single string, preserving line breaks
|
||||||
|
Reference in New Issue
Block a user