Skip to content

Commit

Permalink
handle jar path with spaces correctly(fixes #31)
Browse files Browse the repository at this point in the history
  • Loading branch information
joethei committed Jun 15, 2022
1 parent 6b7a219 commit 69f47c8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "obsidian-plantuml",
"name": "PlantUML",
"version": "1.6.4",
"version": "1.6.5",
"minAppVersion": "0.13.0",
"description": "Render PlantUML Diagrams",
"author": "Johannes Theiner",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-plantuml",
"version": "1.6.4",
"version": "1.6.5",
"description": "PlantUML rendering for Obsidian.md",
"main": "main.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/localProcessors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export class LocalProcessors implements Processor {
}

return [
this.plugin.settings.javaPath, '-jar', '-Djava.awt.headless=true', jarFullPath, '-charset', 'utf-8'
this.plugin.settings.javaPath, '-jar', '-Djava.awt.headless=true', '"' + jarFullPath + '"', '-charset', 'utf-8'
];
}
}
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@
"1.6.1": "0.13.0",
"1.6.2": "0.13.0",
"1.6.3": "0.13.0",
"1.6.4": "0.13.0"
"1.6.4": "0.13.0",
"1.6.5": "0.13.0"
}

0 comments on commit 69f47c8

Please sign in to comment.