-
-
Notifications
You must be signed in to change notification settings - Fork 981
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
--highlight-style argument does not accept a shortpath name on WINDOWS #1976
Comments
So we got the reply in jgm/pandoc#6939:
It was also confirmed that file path enclosed in double quotes with space are mostly ok for Pandoc. I don't really know from which version. Several solutions here:
|
spaces can be in filepath on Windows rstudio/rmarkdown#1976
spaces can be in filepath on Windows rstudio/rmarkdown#1976
spaces can be in filepath on Windows rstudio/rmarkdown#1976
In fact this is handle correctly in rmarkdown as currently, it can't take a theme file but the PR #1881 which offer support for that correctly do not use |
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary. |
I isolated the bug to be with Windows and shortpath name transformation when there is a space in the path: It seems
--highlight-style
does not handle it.Reprex
dummy proj for the example
create a dummy md file
Get the distill theme file for example
create a copy in a directory with space
helper function
With a path without space no issue
With a space in name, it is working well
unless path is modified by
rmarkdown::pandoc_path_arg()
which use
utils::shortPathName
- this is cause the issueClean
Created on 2020-12-09 by the reprex package (v0.3.0.9001)
If a fix is to be made in our tool, this would be in rmarkdown not distill. I'll report upstream because it seems it is not causing any issue with other argument
Let's precise that it seems Pandoc on Windows no how to handle space in path, so maybe utils::shortPathName is nor more required.
Originally posted by @cderv in rstudio/distill#214 (comment)
The text was updated successfully, but these errors were encountered: