From 69f47c81e650a39934284327499369fae5cfb185 Mon Sep 17 00:00:00 2001 From: Johannes Theiner Date: Wed, 15 Jun 2022 08:54:51 +0200 Subject: [PATCH] handle jar path with spaces correctly(fixes #31) --- manifest.json | 2 +- package.json | 2 +- src/localProcessors.ts | 2 +- versions.json | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/manifest.json b/manifest.json index 581a5c1..fdb9f8a 100644 --- a/manifest.json +++ b/manifest.json @@ -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", diff --git a/package.json b/package.json index 50a4433..f563ad2 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/localProcessors.ts b/src/localProcessors.ts index 8d980e3..9342982 100644 --- a/src/localProcessors.ts +++ b/src/localProcessors.ts @@ -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' ]; } } diff --git a/versions.json b/versions.json index a3fbfd1..e3d21f2 100644 --- a/versions.json +++ b/versions.json @@ -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" }