Enclosing double quotes converted into single quotes when backslash added to end of string

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 7 years and 9 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.
User avatar
bpereira
Posts: 6
Last visit: Thu Oct 20, 2016 8:02 am

Enclosing double quotes converted into single quotes when backslash added to end of string

Post by bpereira »

Product, version and build: PowerShell Studio 2016 v5.2.122
32 or 64 bit version of product: 64 bit
Operating system: Windows 7 Enterprise SP1
32 or 64 bit OS: 64 bit
PowerShell Version: 4.0

Hello, whenever you add a backslash right before the trailing double quote in a string, the string's enclosing double quotes are converted into single quotes. This has the adverse effect of preventing PowerShell from parsing variables within that string.

I could not find the option to prevent double quote conversions into single quotes, did I overlook it?

Thank you.
User avatar
bpereira
Posts: 6
Last visit: Thu Oct 20, 2016 8:02 am

Re: Enclosing double quotes converted into single quotes when backslash added to end of string

Post by bpereira »

Here is an animated GIF of the behavior in question:
PSStudio_Quote_Conversion.gif
PSStudio_Quote_Conversion.gif (32.21 KiB) Viewed 3732 times
DevinL
Posts: 1098
Last visit: Tue Jun 06, 2017 9:15 am

Re: Enclosing double quotes converted into single quotes when backslash added to end of string

Post by DevinL »

My apologies for the delay, but I'm unable to reproduce this on my end. Here's a clip of me attempting to reproduce it: http://screencast.com/t/H3Yt7WY3uN7

Are you able to upload a screenshot of your formatting options? They're located in File -> Options -> Formatting.
DevinL
SAPIEN Technologies, Inc.
User avatar
bpereira
Posts: 6
Last visit: Thu Oct 20, 2016 8:02 am

Re: Enclosing double quotes converted into single quotes when backslash added to end of string

Post by bpereira »

Hi DevinL,

Please see the Formatting options panel below. I think I'm on to something, I use the French Canadian keyboard layout which requires me to use the right Alt key + tilde keyboard combination (the key to the left of number 1). If I switch the keyboard layout back to English US, the issue does not occur.
PSStudio_Formatting.jpg
PSStudio_Formatting.jpg (79.35 KiB) Viewed 3703 times
DevinL
Posts: 1098
Last visit: Tue Jun 06, 2017 9:15 am

Re: Enclosing double quotes converted into single quotes when backslash added to end of string

Post by DevinL »

Ahh yes, that did it. I installed the French Canadian keyboard layout and had the same thing happen when using alt + tilde. I've filed an internal bug and will post here when I have more information.
DevinL
SAPIEN Technologies, Inc.
User avatar
bpereira
Posts: 6
Last visit: Thu Oct 20, 2016 8:02 am

Re: Enclosing double quotes converted into single quotes when backslash added to end of string

Post by bpereira »

Great! thank you.
This topic is 7 years and 9 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.