Fix newline parsing.
authorCarl Hetherington <cth@carlh.net>
Mon, 15 Feb 2016 18:06:18 +0000 (18:06 +0000)
committerCarl Hetherington <cth@carlh.net>
Mon, 15 Feb 2016 23:18:34 +0000 (23:18 +0000)
src/ssa_reader.cc

index acaa46be4b0d5dc714474ffece2e9c09918f84b0..e1ab0f74df4972e139c6cef6b32225f68a7945ca 100644 (file)
@@ -188,7 +188,7 @@ SSAReader::parse_line (RawSubtitle base, string line)
                        }
                        break;
                case BACKSLASH:
-                       if (c == 'n' && !current.text.empty ()) {
+                       if ((c == 'n' || c == 'N') && !current.text.empty ()) {
                                subs.push_back (current);
                                current.text = "";
                                current.vertical_position.line = current.vertical_position.line.get() + 1;