Skip to content

Commit f69b4a2

Browse files
Fix command output formatting to ensure consistent HTML rendering in coverage report
1 parent 1d6ab4e commit f69b4a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/main.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ LogGroup 'Files analyzed' {
140140
# --------------------------------------------------------------------------------
141141
$missedForDisplay = $codeCoverage.CommandsMissed | Sort-Object -Property File, Line | ForEach-Object {
142142
$command = (Normalize-IndentationExceptFirst -Code $_.Command)
143-
$command = '<pre><code class="language-powershell">{0}</pre></code>' -f $command
144143
$command = $command.Replace([Environment]::NewLine, '<br>').Replace(' ', '&nbsp;').Replace('{', '\{').Replace('}', '\}')
144+
$command = '<pre><code class="language-powershell">{0}</pre></code>' -f $command
145145
[PSCustomObject]@{
146146
File = $_.File
147147
Line = $_.Line
@@ -156,8 +156,8 @@ $missedForDisplay = $codeCoverage.CommandsMissed | Sort-Object -Property File, L
156156

157157
$executedForDisplay = $codeCoverage.CommandsExecuted | Sort-Object -Property File, Line | ForEach-Object {
158158
$command = (Normalize-IndentationExceptFirst -Code $_.Command)
159-
$command = '<pre><code class="language-powershell">{0}</pre></code>' -f $command
160159
$command = $command.Replace([Environment]::NewLine, '<br>').Replace(' ', '&nbsp;').Replace('{', '\{').Replace('}', '\}')
160+
$command = '<pre><code class="language-powershell">{0}</pre></code>' -f $command
161161
[PSCustomObject]@{
162162
File = $_.File
163163
Line = $_.Line

0 commit comments

Comments
 (0)