Skip to content

Conversation

@thezeroalpha
Copy link
Contributor

For the tectonic compiler: if the path to the file contains spaces, outdir is not quoted properly and hence the build command does not work. This commit fixes that by escaping the path with fnameescape().


Minimal example of the fixed issue:

  1. Create the directory and file:
mkdir ~/'dir with spaces'
touch ~/'dir with spaces'/main.tex
  1. Edit main.tex to create a valid document.
  2. Set let g:vimtex_compiler_method='tectonic'
  3. Try to compile, observe an error. :VimtexCompileOutput shows that 'spaces' in the path is treated as a separate argument, though it should not be.

For the tectonic compiler: if the path to the file contains spaces,
outdir is not quoted properly and hence the build command does not work.
This commit fixes that by escaping the path with `fnameescape()`.
@lervag
Copy link
Owner

lervag commented Jul 13, 2022

Thanks! I'll accept this, except I don't want the modern method style. Simply because it breaks from the style used throughout in the VimTeX code - I do generally agree it is a nice style!

@lervag lervag merged commit e56daa6 into lervag:master Jul 14, 2022
@lervag
Copy link
Owner

lervag commented Jul 14, 2022

Thanks!

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.

2 participants