You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that the subtitle text is parsed without a new line.
The text is unmarshalled as xml chardata:
type TTMLInItem struct {
Text string `xml:",chardata"`
...
}
Which results with the following string: "Got you!Steady on."
ttml.go has the following comment in the code:
// New line decoded as a line break. This can happen if there's a "br" tag within the text since
// since the go xml unmarshaler will unmarshal a "br" tag as a line break if the field has the
// chardata xml tag.
But it doesn't really seem the go xml unmarshaler converts the br tag into a new line.
Perhaps this is something which used to be true in old go versions? (I'm using Go 1.18.5
The text was updated successfully, but these errors were encountered:
Hi.
I'm trying to parse the following ttml snippet:
It seems that the subtitle text is parsed without a new line.
The text is unmarshalled as xml chardata:
Which results with the following string: "Got you!Steady on."
ttml.go has the following comment in the code:
But it doesn't really seem the go xml unmarshaler converts the br tag into a new line.
Perhaps this is something which used to be true in old go versions? (I'm using Go 1.18.5
The text was updated successfully, but these errors were encountered: