-
Notifications
You must be signed in to change notification settings - Fork 15
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
Trailing Carriage Returns #8
Comments
I'm thinking that this may be something that works slightly different on Linux and Windows? The bottom of this function now looks like this for me:
This works for me on Windows for the cases where I have any number of carriage returns after the last line of text in the SRT file, including 0. But I don't have the possibility to test on Linux so I'm not proposing it as a fix, just a possible solution to consider if anybody else is witnessing the same symptom under Windows. |
Oh, this definitely sounds like a bug! Sorry for the super-late response. Thanks for the report! |
Same bug : #7. |
I find that if I only have one carriage return after my last SRT string, this last subtitle gets ignored by the parser. Therefore I need to have exactly 2 carriage returns after the last subtitle.
If, on the other hand, I have more carriage returns, then the last subtitle will get repeated in the vector of SubtitleItems. This is not really a big deal since the timestamps are all the same for those repeated items, but it might be related to the first issue I mention here.
Just thought I'd mention this possible improvement.
Otherwise nice portable parser.
Thanks.
The text was updated successfully, but these errors were encountered: