Skip to content

Commit c9c3d29

Browse files
committed
end lines
1 parent 3815a44 commit c9c3d29

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Modules/Scripts/Get-Colors.ps1

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,14 @@ Begin
104104

105105
if ($name -eq 'Black') {
106106
Write-Host ("{0,-35} #{1} {2,-14} {3} " -f $basics, $rgb, $decimal, $escapes) -ForegroundColor $name -BackgroundColor DarkGray-NoNewline
107-
Write-Host (" <ESC>[{0} " -f $codes[$name].Back) -BackgroundColor $name -ForegroundColor Gray
107+
Write-Host (" <ESC>[{0} " -f $codes[$name].Back) -BackgroundColor $name -ForegroundColor Gray -NoNewline
108+
Write-Host
108109
}
109110
else {
110111
Write-Host ("{0,-35} #{1} {2,-14} {3} " -f $basics, $rgb, $decimal, $escapes) -ForegroundColor $name -NoNewline
111112
$fore = if ($name -eq 'Gray') { 'DarkGray' } else { 'Gray' }
112-
Write-Host (" <ESC>[{0}m " -f $codes[$name].Back) -BackgroundColor $name -ForegroundColor $fore
113+
Write-Host (" <ESC>[{0}m " -f $codes[$name].Back) -BackgroundColor $name -ForegroundColor $fore -NoNewline
114+
Write-Host
113115
}
114116
}
115117

@@ -140,7 +142,8 @@ Begin
140142
$decimal = "{0}, {1}, {2}" -f $lolor.R, $lolor.G, $lolor.B
141143

142144
if ($name -eq 'Black') {
143-
Write-Host ("{0,-21} {1,-13} #{2} {3,-14}" -f $lolor.Name, $name, $rgb, $decimal) -ForegroundColor $name -BackgroundColor DarkGray
145+
Write-Host ("{0,-21} {1,-13} #{2} {3,-14}" -f $lolor.Name, $name, $rgb, $decimal) -ForegroundColor $name -BackgroundColor DarkGray -NoNewline
146+
Write-Host
144147
}
145148
else {
146149
Write-Host ("{0,-21} {1,-13} #{2} {3,-14}" -f $lolor.Name, $name, $rgb, $decimal) -ForegroundColor $name

0 commit comments

Comments
 (0)