Skip to content

Commit 69eb4e9

Browse files
dennischancsrobertoffmoura
authored andcommitted
fix bug
Escaped character '\s' is not valid. See 'doc sprintf'
1 parent b59ff47 commit 69eb4e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plotly/plotly_offline_aux/plotlyoffline.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@
8282
plotlyOfflineFile = fullfile(plotlyfig.PlotOptions.SaveFolder, ...
8383
htmlFilename);
8484
fileID = fopen(plotlyOfflineFile, 'w');
85-
fprintf(fileID, offlineScript);
86-
fclose(fileID);
85+
fprintf(fileID, '%s', offlineScript);
86+
fclose(fileID);
8787

8888
% remove any whitespace from the plotlyOfflineFile path
8989
plotlyOfflineFile = strrep(plotlyOfflineFile, ' ', '%20');

0 commit comments

Comments
 (0)