diff --git a/.gitattributes b/.gitattributes index c7ddb762..da0b45d5 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,12 @@ +* text=auto + +*.ps1 text eol=crlf +*.json text eol=crlf +*.cfg text eol=crlf + +*.png binary +*.jpg binary + config/* diff config/applications.json diff -*.json diff \ No newline at end of file +*.json diff diff --git a/functions/private/Get-TabXaml.ps1 b/functions/private/Get-TabXaml.ps1 index 9caf2e9b..3570af54 100644 --- a/functions/private/Get-TabXaml.ps1 +++ b/functions/private/Get-TabXaml.ps1 @@ -61,19 +61,19 @@ function Get-TabXaml { $paneltotal = $columncount } # add ColumnDefinitions to evenly draw colums - $blockXml="`n"+("`n"*($paneltotal))+"`n" + $blockXml="`r`n"+("`r`n"*($paneltotal))+"`r`n" # Iterate through organizedData by panel, category, and application $count = 0 foreach ($panel in ($organizedData.Keys | Sort-Object)) { - $blockXml += "`n`n" + $blockXml += "`r`n`r`n" $panelcount++ foreach ($category in ($organizedData[$panel].Keys | Sort-Object)) { $count++ if ($columncount -gt 0) { $panelcount2 = [Int](($count)/$maxcount-0.5) if ($panelcount -eq $panelcount2 ) { - $blockXml +="`n`n`n" - $blockXml += "`n`n" + $blockXml +="`r`n`r`n`r`n" + $blockXml += "`r`n`r`n" $panelcount++ } } @@ -83,49 +83,49 @@ function Get-TabXaml { $categorycontent = $($category -replace '^.__', '') $categoryname = Get-WPFObjectName -type "Label" -name $categorycontent - $blockXml += "`n`n" - $blockXml += "`n`n" + $blockXml +="`r`n`r`n`r`n" + $blockXml += "`r`n`r`n" $panelcount++ } } $appInfo = $organizedData[$panel][$category][$appName] if ("Toggle" -eq $appInfo.Type) { - $blockXml += "`n`n" + $blockXml += "`r`n`r`n" } elseif ("Combobox" -eq $appInfo.Type) { - $blockXml += "`n" # If it is a digit, type is button and button length is digits } elseif ($appInfo.Type -match "^[\d\.]+$") { - $blockXml += "