Library snippets do not retain spaces anymore?

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
FrankC
Posts: 126
Joined: Thu Aug 18, 2011 3:28 pm

Library snippets do not retain spaces anymore?

Post by FrankC »

WB 2012 does not seem to retain spaces anymore in the Library snippets, relative to WB 2011. For example, one snippet should produce

Code: Select all

/* | */
but every time I close WB and restart it, it changes it back to

Code: Select all

/*|*/

When I add the spaces in the snippet they remain during that session, but they are gone again in a new WB session. Has something changed with respect to the manual? If not, could this be restored in an update? In WB 2011, things worked fine.
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Library snippets do not retain spaces anymore?

Post by Aivars »

I can't reproduce it. Can you create a screenshot of the snippet before & after?
Blumentals Software Programmer
FrankC
Posts: 126
Joined: Thu Aug 18, 2011 3:28 pm

Re: Library snippets do not retain spaces anymore?

Post by FrankC »

Sure. Of the Snippet Editor window or of the result of calling the snippet into action?
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Library snippets do not retain spaces anymore?

Post by Aivars »

The editor window, please.
Blumentals Software Programmer
FrankC
Posts: 126
Joined: Thu Aug 18, 2011 3:28 pm

Re: Library snippets do not retain spaces anymore?

Post by FrankC »

OK, this is right after I added the spaces: http://prntscr.com/173jx4, and this is after I clicked OK, closed and restarted WB, and opened the editor window again: http://prntscr.com/173kgs.
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Library snippets do not retain spaces anymore?

Post by Aivars »

I see - the problem is not with the spaces inside the text but the spaces before/after text get trimmed. I think this is a known problem and it might have been present in previous versions, too, but I'll check and add if needed.
Blumentals Software Programmer
FrankC
Posts: 126
Joined: Thu Aug 18, 2011 3:28 pm

Re: Library snippets do not retain spaces anymore?

Post by FrankC »

OK. FYI: I use that snippet a lot, just about every day I'm coding, because it is the comment tag in both CSS and Javascript. And I've never had any problems with it in WB 2011.

Another thing, which seems related, is that WB 2014 changes the — in the — snippet back to —. Not upon closing and restarting WB, and I haven't been able to replicate when exactly, but just about every time I need it again, the — has changed back to —.
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Library snippets do not retain spaces anymore?

Post by Aivars »

Could it be that you run WB2011 now and then? That could ruin unicode characters in library snippets.
Blumentals Software Programmer
FrankC
Posts: 126
Joined: Thu Aug 18, 2011 3:28 pm

Re: Library snippets do not retain spaces anymore?

Post by FrankC »

As a matter of fact, yes I do, to look up things if I can't find them in WB 2014. Thanks for the tip.

I assume this will not solve the disappearing spaces problem. If it should, please let me know. Also, how would you let us know when you found a solution for that problem?
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Library snippets do not retain spaces anymore?

Post by Aivars »

There are update announcements in Announcements thread. If the list of changes contains bugfix for snippets then you'll know it's fixed.
Blumentals Software Programmer
Post Reply