Author Topic: Question about {CLIP} to copy text to a file.  (Read 4598 times)

iceblast

  • Sr. Member
  • ****
  • Posts: 372
Question about {CLIP} to copy text to a file.
« on: December 02, 2016, 04:09:16 PM »
Question about {CLIP} to copy text to a file.

I noticed, that it doesn't copy the { } brackets.  Is that suppose to happen?

Example:

a:active {
    color: yellow !important;
}

That's code from my CSS style editor. As you can see, there are 2 brackets. But when I use VA to copy that code to a file, it copies every, but the brackets. Which can be confusing, when you go to review the file, and have to add the brackets back.

a:active
    color: yellow !important;

Just wondering why it does that. I seem to be able to use VA to copy and paste the code fine, just when I have it copy the code to a file does it drop the brackets.



Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4759
  • RTFM
Re: Question about {CLIP} to copy text to a file.
« Reply #1 on: December 02, 2016, 05:38:12 PM »
It's the token parser. Since nested tokens have been added, it's become necessary to escape curly braces using a pipe: "|{" and "|}".

last time I tried, it couldn't be done automatically. Because tokens are parsed from the inside out, using "{TXTREPLACEVAR:}" won't work for this, as the contents of "{CLIP}" will be processed before "{TXTREPLACEVAR:}", meaning the curly braces have already been removed by that time.

iceblast

  • Sr. Member
  • ****
  • Posts: 372
Re: Question about {CLIP} to copy text to a file.
« Reply #2 on: December 02, 2016, 06:25:32 PM »
I turned off nesting, and the brackets came back. so, that works for me :)