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

Some scenes need to have double quotes and single quotes at the same time #116

Open
1057891494 opened this issue Aug 26, 2019 · 4 comments
Open

Comments

@1057891494
Copy link

@1057891494 1057891494 commented Aug 26, 2019

Before you submit an issue we recommend you drop into the Gitter community and ask any questions you have or mention any problems you've had getting started with prettyhtml.

🐛 Bug Report

Some scenes need double quotes and single quotes existing at the same time

To Reproduce

I have this code in the vue template:

<input v-input-check='[params.qrptfg,"select"]' @blur="toLogin('NO')" />

When I use formatting, the code becomes

<input v-input-check="[params.qrptfg,"select"]" @blur="toLogin('NO')" />

Expected behavior

I want the code to be like this

<input v-input-check='[params.qrptfg,"select"]' @blur="toLogin('NO')" />

I want to know whether you can provide a third option, which won't change the quotes.

Context

  • Angular
  • Svelte
  • Vue
  • Riot
  • HTML5 only

Your Environment

  • Prettyhtml version:1.9.0
  • NodeJs version:10.8.0
  • Environment name and version:vscode 1.37.1
  • Operating System and version:windows10
@StarpTech
Copy link
Member

@StarpTech StarpTech commented Aug 26, 2019

Would you like to work on this?

@1057891494
Copy link
Author

@1057891494 1057891494 commented Aug 27, 2019

Maybe i can have a try,i will upload to you,you can accept it or modify, its up to you.

@stale
Copy link

@stale stale bot commented Sep 11, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Sep 11, 2019
@y912765390

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.