Skip to content

Commit 93c15fd

Browse files
author
Conner.Will
committed
removed removal of empty lines from beginning and end
1 parent 1c22c59 commit 93c15fd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Convert-ImageToASCIIArt.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,15 @@ function Convert-ImageToASCIIArt {
125125
}
126126
}
127127

128-
Write-Verbose -Message "Replacing characters from ASCII art, Removing empty lines from beginning and end"
128+
Write-Verbose -Message "Replacing characters from ASCII art" #, Removing empty lines from beginning and end"
129129

130130
$asciiChars = $asciiChars -replace "[{0}-{1}]" -f $minCharIndex, $maxCharIndex, $contrastChars
131131

132132
# Remove blank lines from the start of the text
133-
$asciiChars = $asciiChars -replace "(?m)^\s*`r?`n", ""
133+
# $asciiChars = $asciiChars -replace "(?m)^\s*`r?`n", ""
134134

135135
# Remove blank lines from the end of the text
136-
$asciiChars = $asciiChars -replace "`r?`n\s*$", ""
136+
# $asciiChars = $asciiChars -replace "`r?`n\s*$", ""
137137

138138
# Output the ASCII art.
139139
Write-Verbose -Message "Outputting the ASCII art"

0 commit comments

Comments
 (0)