Copy to clipboard outputing escape characters in template content
Bug Report
- Host: All
- OS: Windows 10
- Browser: N/A
- Environment: Beta
Expected behavior:
Share | Copy to clipboard should give me output able to be pasted into Notepad++ (or whatever editor). New lines in Script Lab should be new lines in the text.
Actual behavior:
The template section (and only the template section) is full of \s. Tabs and newlines are represented by \t and \n and quotes are also escaped.
Steps to Reproduce:
1.Share | Copy to clipboard 2. Copy into Notepad++
Screenshot:

This should be fixed in Beta now, please reopen if the issue persists.
@nico-bellante I'm still having this happen for the HTML section. I can't reopen the issue since I'm not an admin on this repo.
@AlexJerabek, reopened it for you
@AlexJerabek , I also added you to give to the repo, so you should be able to re-open issues in the future.
@AlexJerabek , just tried it with the same "Basic conditional formatting" snippet that you have in your repro -- and I am not able to repro. I am getting a beautifully multi-line template:

Is this happening to you with any snippet or with particular snippets?
FWIW, I still think there is some weird semi-nondeterministic behavior with the YAML parser, we had issues like that perennially in the older Script Lab (https://github.com/OfficeDev/script-lab-2017/issues/268). But if we can figure out the pattern -- and esp. if this is something that can be done deterministically just using the YAML parser library, outside of Script Lab --, perhaps we can find a cure.
Here's a test snippet I just repoed this with: https://gist.github.com/AlexJerabek/372f1dd5f065d89217415f9fb3c348d1
I imported the snippet using the gist URL, copied to the clipboard, then pasted into a .yaml file opened in VS Code. Here's the screenshot:
