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

stl: validate vertical position for closed subtitles #56

Merged
merged 3 commits into from Sep 1, 2021

Conversation

dlecorfec
Copy link
Contributor

Fixes bad vertical positioning (less than 1 or greater than 23) on closed subtitles when writing STL. Replaces #39

@coveralls
Copy link

coveralls commented Sep 1, 2021

Coverage Status

Coverage decreased (-0.04%) to 76.433% when pulling fb8e3da on dlecorfec:validate-vertical-position into ab28eac on asticode:master.

o = append(o, t.justificationCode) // Justification code
o = append(o, t.commentFlag) // Comment flag
o = append(o, astikit.BytesPad(encodeTextSTL(string(t.text)), '\x8f', 112, astikit.PadRight, astikit.PadCut)...) // Text field
return
}

func validateVerticalPosition(vp int, dsc string) byte {
Copy link
Owner

Choose a reason for hiding this comment

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

Could you add a link to the doc (the same one you posted in [the previous PR]'s initial comment) ? That could be useful for future changes

@dlecorfec
Copy link
Contributor Author

Done.

@asticode asticode merged commit 39d5008 into asticode:master Sep 1, 2021
@asticode
Copy link
Owner

asticode commented Sep 1, 2021

FYI I've created a v0.18.0 tag

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.

None yet

3 participants