From a3d30ae3a4ce92c5fe7578a3411626ffb74a83e6 Mon Sep 17 00:00:00 2001 From: robbkenobi Date: Mon, 1 Jun 2020 21:17:35 +1200 Subject: [PATCH] Update EnhancedHTML2.psd1 PowerShell will always use InvariantCulture when performing String Interpolation. This change allows CurrentCulture to be used in its place. A good explanation is here: https://stackoverflow.com/questions/2379514/powershell-formatting-values-in-another-culture/37603732#37603732 --- EnhancedHTML2.psd1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EnhancedHTML2.psd1 b/EnhancedHTML2.psd1 index c7638bb..ed123ff 100644 --- a/EnhancedHTML2.psd1 +++ b/EnhancedHTML2.psd1 @@ -620,11 +620,11 @@ to help visually indicate that the section can be toggled. if ($As -eq 'table') { Write-Verbose "Adding $name to header and $value to row" $headerrow += "$name" - $datarow += "$value" + $datarow += "$($value.ToString())" } else { $wrote_first_line = $true $headerrow = "" - $datarow = "$name :$value" + $datarow = "$name :$($value.ToString())" $out += "$datarow" } }