Directories with spaces in directories cause failure in export
janhag69 opened this issue · 1 comments
When trying to export via org-pandoc-export-to-FORMAT and the current directory is in a directory with spaces in the directory name, the export fails with the following message:
pandoc.exe: c:/Users/jahag22/OneDrive - \307rebro kommun/L2324/test.tmpFLjNi6.org: withBinaryFile: does not exist (No such file or directory)
It doesn't help to create a symbolic link like c:/Users/jahag22/OREDRIVE/ to replace the directory name.
It expands to the original name and still failure on export.
In compare to another test with no spaces the result is working fine.
Saving file c:/Users/jahag22/Documents/test/test.tmpegb77y.org...
Wrote c:/Users/jahag22/Documents/test/test.tmpegb77y.org
Running pandoc with args: (-f org -t docx -o c:/Users/jahag22/Documents/test/test.docx --standalone c:/Users/jahag22/Documents/test/test.tmpegb77y.org)
Exported to test.docx.
You can run the command ‘org-pandoc-export-to-docx’ with C-c d
Exported to test.docx.
The OneDrive application generates those spaces so it is not possible to change it according to company policy.
Looks like directories with CJK characters can also cause failure on export.