From 76eecf8e60a98f994a9a6906075ba5f1fd3cb2fd Mon Sep 17 00:00:00 2001 From: "M. Hock" <martin.hock@fst.tu-darmstadt.de> Date: Tue, 1 Mar 2022 12:38:02 +0100 Subject: [PATCH] ensured that ParentFolder and following variables have no trailing filesep --- +PlotID/Publish.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/+PlotID/Publish.m b/+PlotID/Publish.m index 85a2b3d..40f4fcd 100644 --- a/+PlotID/Publish.m +++ b/+PlotID/Publish.m @@ -46,6 +46,11 @@ if isstring(scriptPath) scriptPath = char(scriptPath); end +% ensure ParentFolder has no trailing fileseperator +if contains(options.ParentFolder(end),filesep) + options.ParentFolder(end)=''; +end + %catch multiple figures in fig if numel(figure) > 1 figure = figure(1); -- GitLab