diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-06-11 22:27:27 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-06-11 22:27:27 +0100 |
| commit | 7d06515b065e25e8e42e59dc0c35f994ddc06f04 (patch) | |
| tree | 1ce067c1dafdced30936c8d7af2912b1eb909d88 /src/ssa_reader.cc | |
| parent | fcc0539dcedfd6428ecdc717444c7d9d8e30e697 (diff) | |
Test and fix italic support in SSA.
Diffstat (limited to 'src/ssa_reader.cc')
| -rw-r--r-- | src/ssa_reader.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ssa_reader.cc b/src/ssa_reader.cc index b3df458..d3555cb 100644 --- a/src/ssa_reader.cc +++ b/src/ssa_reader.cc @@ -235,9 +235,9 @@ SSAReader::parse_line (RawSubtitle base, string line) subs.push_back (current); current.text = ""; } - if (style == "i1") { + if (style == "\\i1") { current.italic = true; - } else if (style == "i0") { + } else if (style == "\\i0" || style == "\\i") { current.italic = false; } style = ""; |
