koppor / plantuml

A LuaLaTeX package for PlantUML in LaTeX
https://koppor.github.io/plantuml/
LaTeX Project Public License v1.3c
56 stars 11 forks source link

Unable to access jarfile when PLANTUML_JAR contains spaces on Windows #7

Open rose-a opened 6 years ago

rose-a commented 6 years ago

If PLANTUML_JAR contains a path with spaces in it, compiling results in an error (Example path: C:\Program Files (x86)\PlantUML\plantuml.jar):

Error: Unable to access jarfile C:\Program

I tried it out running the java cmd on the command line, same result there. If you put quotes around the environment variable everything works fine.

koppor commented 6 years ago

I think, the fix is to do some string concatenation at https://github.com/latextemplates/plantuml/blob/dd626b7ab664d7554d5e62be2de0ff375c5f7933/plantuml.lua#L25.