Skip to content
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

Directories with spaces in directories cause failure in export #96

Open
janhag69 opened this issue Aug 7, 2023 · 1 comment
Open

Directories with spaces in directories cause failure in export #96

janhag69 opened this issue Aug 7, 2023 · 1 comment

Comments

@janhag69
Copy link

janhag69 commented Aug 7, 2023

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.

@Leilei332
Copy link

Looks like directories with CJK characters can also cause failure on export.

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

No branches or pull requests

2 participants