diff --git a/+PlotID/Publish.m b/+PlotID/Publish.m index 85a2b3dd10af0bae2870fb9c17fca88a861cd72e..40f4fcd6ad976f730b654fb48711b1825358cad2 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);