Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug in setSvgFileSize #5

Open
cpandar opened this issue Apr 23, 2017 · 1 comment
Open

bug in setSvgFileSize #5

cpandar opened this issue Apr 23, 2017 · 1 comment

Comments

@cpandar
Copy link

cpandar commented Apr 23, 2017

Current code is as follows (saveFigure.m/setSvgFileSize, L414-5):

str = regexprep(str, sprintf('font-family:''Dialog''', 'font-family:''%s''', fontName));
str = regexprep(str, sprintf('font-family:''SansSerif''', 'font-family:''Helvetica''', fontName));

This isn't a valid us of regexprep (2 arguments), likely the following is what was intended?

str = regexprep(str, 'font-family:''Dialog''', sprintf('font-family:''%s''', fontName));
str = regexprep(str, 'font-family:''SansSerif''', sprintf('font-family:''Helvetica''', fontName));
@cpandar
Copy link
Author

cpandar commented Apr 23, 2017

Actually, in the second line there, the sprintf seems unnecessary as there's no %s in the format string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant