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

Single, double and auto quotes #191

Open
emilos opened this issue Dec 19, 2019 · 1 comment
Open

Single, double and auto quotes #191

emilos opened this issue Dec 19, 2019 · 1 comment

Comments

@emilos
Copy link

emilos commented Dec 19, 2019

Motivation

As a developer, I'd like to use astring as a part of a code transformation toolchain and pick the type of quotes that are going to be rendered.

Expected behavior

It should be possible to pass a quotes option that accepts: single | double | auto that change the quotes in the output.

Actual behavior

The library preserves existing quotes automatically (which is how auto mode works).

Implementation notes

The change would be non-breaking as the flag could be set to auto by default.

@davidbonnet
Copy link
Owner

davidbonnet commented Jan 12, 2020

Custom formatting is low-priority and won't be tackled soon. However, a pull request is welcome.

@davidbonnet davidbonnet added this to the Custom formatting support milestone Jan 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants