-
Notifications
You must be signed in to change notification settings - Fork 84
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
Translate single quoted strings in -y
/ --yaml
switches
#296
Comments
Thanks for this, I'll l review soon, I hope. Development is slow at the moment because of work pressures. Apologies |
Thanks for this. The following seems to work, with no single quotes:
Do you need the single quotes? |
In my use cases, no. I prefer to mark this issue as an enhancement rather than a bug (cause it works without quotes). But I still think it is necessary, for many users, it is more intuitive to add quotes around strings. I spent hours to find out why my As for why I'm using single quotes rather than double quotes (works fine), I'm using // double quotes
"latex-workshop.latexindent.args": [
"-c",
"%DIR%/",
"%TMPFILE%",
"-y=defaultIndent: '%INDENT%',verbatimEnvironments:codeblock:name:\"\\w+code\\*?\""
]
// single quotes
"latex-workshop.latexindent.args": [
"-c",
"%DIR%/",
"%TMPFILE%",
"-y=defaultIndent: '%INDENT%',verbatimEnvironments:codeblock:name:'\\w+code\\*?'"
] |
Implemented at https://github.com/cmhughes/latexindent.pl/releases/tag/V3.13.1, thanks again for your contribution to the project! |
Please provide the following when posting an issue:
original .tex code
Please paste your .tex code here. Please note in answering your issue, I may add the code you provide to the test-cases directory. Please detail explicitly if you would prefer me not to do so..
This is
verbatim7.tex
in test cases.yaml settings
Please paste your YAML settings (if any) here
$ latexindent -w -t -y="defaultIndent:' ',verbatimEnvironments:nameAsRegex:name:'\\w+code\\*?'" verbatim7.tex
actual/given output
Please paste the output you receive here
indent.log
shows that the regex expression contains single quotes and they are not removed.desired or expected output
Please paste your desired/expected output here; that is, what do you want the output to look like
Double quoted strings work fine.
$ latexindent -w -t -y="defaultIndent:' ',verbatimEnvironments:nameAsRegex:name:\"\\w+code\\*?\"" verbatim7.tex
indent.log
shows we removed double quotes.anything else
Please put any comments or anything else here :)
The text was updated successfully, but these errors were encountered: