Skip to content

Avoid trailing whitespace in generated file lists #635

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

Merged
merged 1 commit into from
Jul 12, 2023

Conversation

alexcraven
Copy link
Contributor

CreateOspryJob_app uses spm_select to choose files, which returns filenames as a (square) character array -- possibly padded with spaces.

Added cellstr calls to trim those spaces. This is complementary to commit 985ad44 (which addresses a symptom of this same problem, and would additionally handle the case where a user-generated list has trailing spaces)

Also includes a minor (unrelated) fix for compatibility with pre-2020b Matlab.

CreateOspryJob_app uses spm_select to choose files, which returns filenames as a (square) character array -- possibly padded with spaces.

Added `cellstr` calls to trim those spaces. This is complementary to commit 985ad44 (which addresses a symptom of this same problem, and would additionally handle the case where a user-generated list has trailing spaces)

Also includes a minor (unrelated) fix for compatibility with pre-2020b Matlab.
@HJZollner HJZollner merged commit c0ae33d into schorschinho:develop Jul 12, 2023
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

Successfully merging this pull request may close these issues.

2 participants