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

Substitule quoted strings in -y / --yaml switches #297

Merged
merged 1 commit into from
Nov 7, 2021
Merged

Substitule quoted strings in -y / --yaml switches #297

merged 1 commit into from
Nov 7, 2021

Conversation

XuehaiPan
Copy link
Contributor

Current behavior:

  1. Remove double quotes around double-quoted strings.
  2. Only special treatment for quoted strings only with tabs.

Fail on strings using single quotations.

New behavior:

  1. Always remove quotations around.
  2. Substitute escape characters for \t / \n / \" / \\ in double-quoted strings and \t / \n in single-quoted strings.

Fixes #296

@cmhughes cmhughes changed the base branch from main to develop November 7, 2021 14:14
@cmhughes cmhughes merged commit 5aaded4 into cmhughes:develop Nov 7, 2021
@cmhughes
Copy link
Owner

cmhughes commented Nov 7, 2021

That's great, many thanks.

I've updated this pull request so that it comes to develop, which is my preferred method.

I'll get this released soon.

Thank you again for your help and support of latexindent.pl!
Chris

@XuehaiPan XuehaiPan deleted the substitute-yaml-string branch August 25, 2022 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Translate single quoted strings in -y / --yaml switches
2 participants