Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Paste to Json #36456

Closed
marcel0liveira opened this issue Dec 19, 2024 · 2 comments
Closed

Bug Paste to Json #36456

marcel0liveira opened this issue Dec 19, 2024 · 2 comments
Labels
Issue-Bug Something isn't working Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@marcel0liveira
Copy link

Microsoft PowerToys version

0.86

Installation method

Microsoft Store

Running as admin

Yes

Area(s) with issue?

Advanced Paste

Steps to reproduce

copy html code

win+shft+v (x1) = result ok
win+shft+v (x2) = bug
win+shft+v (x3) = 2x bug
...



### ✔️ Expected Behavior

copy html code

`<note>
    <to>Mr. Smith</to>
    <from>Ms. Nguyen</from>
    <body>Do you like PowerToys?</body>
</note>`

win+shft+v (always)

`{
  "note": {
    "to": "Mr. Smith",
    "from": "Ms. Nguyen",
    "body": "Do you like PowerToys?"
  }
}`

### ❌ Actual Behavior

Mr. Smith Ms. Nguyen Do you like PowerToys?

// win+shft+v (1x)
{
"note": {
"to": "Mr. Smith",
"from": "Ms. Nguyen",
"body": "Do you like PowerToys?"
}
}

// win+shft+v (2x)
[
"{",
" "note": {",
" "to": "Mr. Smith",",
" "from": "Ms. Nguyen",",
" "body": "Do you like PowerToys?"",
" }",
"}"
]

// win+shft+v (3x)
[
"[",
" "{",",
" " \"note\": {",",
" " \"to\": \"Mr. Smith\",",",
" " \"from\": \"Ms. Nguyen\",",",
" " \"body\": \"Do you like PowerToys?\"",",
" " }",",
" "}"",
"]"
]

// win+shft+v (4x)
[
"[",
" "[",",
" " \"{\",",",
" " \" \\\"note\\\": {\",",",
" " \" \\\"to\\\": \\\"Mr. Smith\\\",\",",",
" " \" \\\"from\\\": \\\"Ms. Nguyen\\\",\",",",
" " \" \\\"body\\\": \\\"Do you like PowerToys?\\\"\",",",
" " \" }\",",",
" " \"}\"",",
" "]"",
"]"
]


### Other Software

Notepad++ 8.6
VSCode 1.93

![Image](https://github.com/user-attachments/assets/fdafacc2-aaa1-45e0-b3a0-559d2f3ac57d)
![Image](https://github.com/user-attachments/assets/10289b3d-a52e-49b4-af44-b86271cab690)
@marcel0liveira marcel0liveira added Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Dec 19, 2024
@htcfreek
Copy link
Collaborator

/dup #35225

Copy link
Contributor

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@microsoft-github-policy-service microsoft-github-policy-service bot added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug Something isn't working Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

2 participants