[WEBVTT] Support both center and middle text alignments

Fixes #882.
This commit is contained in:
Vishal Shah 2021-01-19 12:45:20 -07:00 committed by GitHub
parent b231c36539
commit 8e3e8d3e8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ void ParseSettings(const std::string& id,
} else if (id == "align") { } else if (id == "align") {
if (value == "start") { if (value == "start") {
settings->text_alignment = TextAlignment::kStart; settings->text_alignment = TextAlignment::kStart;
} else if (value == "center") { } else if (value == "center" || value == "middle") {
settings->text_alignment = TextAlignment::kCenter; settings->text_alignment = TextAlignment::kCenter;
} else if (value == "end") { } else if (value == "end") {
settings->text_alignment = TextAlignment::kEnd; settings->text_alignment = TextAlignment::kEnd;