Skip to content

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

@1057891494

Description

@1057891494

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions