fixQuotes should not rewrite the content of `filecontents(*)` environment
Author: darkmatterpelicanCreated Sep 18, 2026Updated Sep 18, 2026
The Issue*
Please briefly describe the issue you come across.
- If there are double quotes in a
filecontents(*)environment, and iffixQuotesis enabled, the quotes are replaced with [double backticks] and''. - The content of the
filecontents(*)environment is not necessarily LaTeX code.
Reproduction Steps
Please list out the steps to reproduce your bug. Include relevant environmental variables or any other configuration.
- Try to generate a file with the
filecontents(*)environment containing". - The double quotes get replaced.
fixQuotes should treat those environments as verbatim.
Source: James-Yu/LaTeX-Workshop