Formatting problem with unary operator

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
adbertram
Posts: 99
Joined: Sun Mar 03, 2013 12:45 pm
Location: Indiana
Contact:

Formatting problem with unary operator

Post by adbertram » Fri Apr 15, 2016 1:23 pm

When I use a unary operator (comma) and format the script PowerShell Studio always inserts a space which breaks functionality.

",$result.Servers" turns into ", $result.Servers"

User avatar
davidc
Posts: 5913
Joined: Thu Aug 18, 2011 4:56 am

Re: Formatting problem with unary operator

Post by davidc » Fri Apr 15, 2016 2:10 pm

Running a quick test in PowerShell, a single item array is created regardless if it has a space or no space. Can you provide an example where this produces an error or breaks functionality?

David
David
SAPIEN Technologies, Inc.

User avatar
adbertram
Posts: 99
Joined: Sun Mar 03, 2013 12:45 pm
Location: Indiana
Contact:

Re: Formatting problem with unary operator

Post by adbertram » Sat Apr 16, 2016 5:46 pm

Hmm..you're right. I guess it all comes down to a formatting preference on my part then. That's typically not how the unary operator is shown. Can that be updated to remove the space when the script is formatted?

User avatar
davidc
Posts: 5913
Joined: Thu Aug 18, 2011 4:56 am

Re: Formatting problem with unary operator

Post by davidc » Mon Apr 18, 2016 8:43 am

We will see what we can do.

David
David
SAPIEN Technologies, Inc.