Formatting option not respecting choice

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 LICENSE NUMBERS, ACTIVATION 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.
This topic is 4 years and 8 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
4lch4_ExtraTxt
Posts: 21
Last visit: Sat Feb 24, 2024 5:20 am
Has voted: 2 times

Formatting option not respecting choice

Post by 4lch4_ExtraTxt »

Product, version and build: PowerShell Studio 2019 5.6.164
32 or 64 bit version of product: 64-bit
Operating system: Windows 10 1803
32 or 64 bit OS: 64-bit

The option for Place open brace on a new line in Options → Formatting → Formatting is not respecting the toggled selection for me. I currently have it unchecked so it should leave open braces on the same line. For example:
Code: [Select all] [Expand/Collapse] [Download] (Unformatted.ps1)
  1. if ($value)
  2. {
  3.     Out-Default 'True'
  4. } else
  5. {
  6.     Out-Default 'False'
  7. }
The above sample should turn in the following after formatting:
Code: [Select all] [Expand/Collapse] [Download] (Formatted.ps1)
  1. if ($value) {
  2.     Out-Default 'True'
  3. } else {
  4.     Out-Default 'False'
  5. }
I know in the past this has worked fine but I haven't used SPS in a month or two so I'm unsure when this stopped working.

In case it helps, in the past when I would toggle the checkbox, the sample would update showing the change as well and this is no longer the case.
J.B. Hunt
Devin Leaman
Devin.Leaman@jbhunt.com
User avatar
mxtrinidad
Posts: 399
Last visit: Tue May 16, 2023 6:52 am

Re: Formatting option not respecting choice

Post by mxtrinidad »

Please upgrade to the next version v5.6.165. The next service release has resolved the issue you're experiencing.
Feel free to give use feedback.

Thanks
4lch4_ExtraTxt
Posts: 21
Last visit: Sat Feb 24, 2024 5:20 am
Has voted: 2 times

Re: Formatting option not respecting choice

Post by 4lch4_ExtraTxt »

Whoops.. Thought I had already updated 😅

Thanks!
J.B. Hunt
Devin Leaman
Devin.Leaman@jbhunt.com
This topic is 4 years and 8 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.