-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
TTML subtitles: Support for <br> inside a paragraph #572
Conversation
Testing in progress... |
All tests passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Please add a test to test/media/ttml_text_parser_unit.js that will check this behavior and we'll be good to go.
No probs. Done! |
Testing in progress... |
All tests passed! |
@birme Did you contribute to the project before? |
Yes I have. My name is Jonas Birmé and I believe I am already in the CONTRIBUTORS list |
Merged! Thanks for the contribution. |
Replace <br> inside a paragraph with newlines.
We currently have TTML subtitles that contains
<br>
elements inside a paragraph for linebreaking. This pull request replaces the<br>
elements with a newline character. Having<br>
inside a paragraph is valid in TTML as far as I have understood by looking at the examples in https://www.w3.org/TR/ttaf1-dfxp/