Skip to content

Fix parsing error if ssa style contains leading or trailing whitespaces#101

Merged
adracea merged 1 commit into
adracea:masterfrom
bytedream:fix-line-value-whitespace
Mar 24, 2026
Merged

Fix parsing error if ssa style contains leading or trailing whitespaces#101
adracea merged 1 commit into
adracea:masterfrom
bytedream:fix-line-value-whitespace

Conversation

@bytedream

@bytedream bytedream commented Mar 24, 2026

Copy link
Copy Markdown
Contributor
[Script Info]

[V4+ Styles]
Format: Name,Fontname,Fontsize,PrimaryColour,SecondaryColour,OutlineColour,BackColour,Bold,Italic,Underline,StrikeOut,ScaleX,ScaleY,Spacing,Angle,BorderStyle,Outline,Shadow,Alignment,MarginL,MarginR,MarginV,Encoding
Style: Default,Arial, 25.5,&H00FFFFFF,&H00000000,&H00000000,&H00000000,-1 ,0,0,0,120,120,0,0,1,1,1,2,0000,0000,0030,0"

Previously this would fail parsing the fontsize because it has an leading whitespace (only an example, any number with leading whitespace would fail)

@adracea adracea merged commit 71e1220 into adracea:master Mar 24, 2026
1 check passed
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.

2 participants