Skip to content

Commit

Permalink
Save WinUtil's json strings with DOS-Style Newline Character (CRLF) i…
Browse files Browse the repository at this point in the history
…nstead of Unix-Style Newline Character (LF)

Originated from PR ChrisTitusTech#2816 by @ruxunderscore
  • Loading branch information
og-mrk committed Oct 23, 2024
1 parent fdd32f4 commit 974c46c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ $($jsonAsObject | ConvertTo-Json -Depth 3)
"@

$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
Expand Down

0 comments on commit 974c46c

Please sign in to comment.