Build: v5.8.207
OS: Windows 10 Enterprise (64 Bit)
Build: v10.0.18363.0
PowerShell version(s): 5.1
*** Please add details and screenshots as needed below. ***
This issue is existing for a very long time, and now i need to report this.
The Format Script function adds as much spaces before the = when the next ?? line is long.
I try to show you. To replay this, you may need to play around a bit, delte some of the extra spaces...
1: My normal code as i would write it, but please be aware of the 30 spaces insetres before the = sign.
Code: Select all
$paramInvokeRestMethod += @{
Uri = "$($CSDConnection.BaseURI)/tokenauth/api/$($Path)"
}
$headers.Add("Authorization", "Bearer $([Runtime.InteropServices.Marshal]::PtrToStringAuto([Runtime.InteropServices.Marshal]::SecureStringToBSTR(($SecureToken))))")
Code: Select all
$paramInvokeRestMethod += @{
Uri = "$($CSDConnection.BaseURI)/tokenauth/api/$($Path)"
}
invalid
$headers.Add("Authorization", "Bearer $([Runtime.InteropServices.Marshal]::PtrToStringAuto([Runtime.InteropServices.Marshal]::SecureStringToBSTR(($SecureToken))))")