summaryrefslogtreecommitdiff
path: root/src/ssa_reader.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/ssa_reader.cc')
-rw-r--r--src/ssa_reader.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ssa_reader.cc b/src/ssa_reader.cc
index e1ab0f7..b56d429 100644
--- a/src/ssa_reader.cc
+++ b/src/ssa_reader.cc
@@ -156,6 +156,8 @@ SSAReader::parse_line (RawSubtitle base, string line)
string style;
current.vertical_position.line = 0;
+ /* XXX: arbitrary */
+ current.vertical_position.lines = 32;
current.vertical_position.reference = TOP_OF_SUBTITLE;
for (size_t i = 0; i < line.length(); ++i) {
@@ -166,7 +168,7 @@ SSAReader::parse_line (RawSubtitle base, string line)
state = STYLE;
} else if (c == '\\') {
state = BACKSLASH;
- } else {
+ } else if (c != '\r' && c != '\n') {
current.text += c;
}
break;