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

Fixing newick parsing #23

Merged
merged 2 commits into from
Apr 29, 2024

Conversation

lucblassel
Copy link
Contributor

This PR fixes #22.

I changed ReadUntilSemiColon so that the lastChar variable checks the last non space or \t character in a line.

All the tests should keep passing (they do on my machine).

N.B: I also changed the instructions on how to run the test script in the README.md file. My default shell is zsh, as such if I just execute ./test.sh the script fails, running bash test.sh yields the expected results.

Copy link
Collaborator

@fredericlemoine fredericlemoine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @lucblassel , that sounds perfect.

@fredericlemoine fredericlemoine merged commit c8ec0e0 into evolbioinfo:master Apr 29, 2024
1 check passed
krtab added a commit to krtab/gotree that referenced this pull request Apr 29, 2024
Commit b959a7f was made because
`test.sh` cannot run on systems where the default shell is not bash
compatible (e.g. zsh). (cf evolbioinfo#23)

A [shebang](https://en.wikipedia.org/wiki/Shebang_(Unix)) allows to
force the use of bash to interpret the shell script. This version
using `/usr/bin/env` should be the most portable.
@lucblassel lucblassel deleted the trailing_whitespace branch April 29, 2024 08:14
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.

Newick parsing failing if there is trailing whitespace after semicolon
2 participants