Skip to content

Avoid trailing whitespace in generated file lists#635

Merged
HJZollner merged 1 commit intoschorschinho:developfrom
alexcraven:develop
Jul 12, 2023
Merged

Avoid trailing whitespace in generated file lists#635
HJZollner merged 1 commit intoschorschinho:developfrom
alexcraven:develop

Conversation

@alexcraven
Copy link
Copy Markdown
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