projects
/
libsub.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2591901
)
Tweak previous.
author
Carl Hetherington
<cth@carlh.net>
Fri, 8 Feb 2019 15:50:48 +0000
(15:50 +0000)
committer
Carl Hetherington
<cth@carlh.net>
Fri, 8 Feb 2019 15:50:48 +0000
(15:50 +0000)
src/ssa_reader.cc
patch
|
blob
|
history
diff --git
a/src/ssa_reader.cc
b/src/ssa_reader.cc
index b899da6151b7eeab10fb1a10b689853679edfa7f..a1672d84758c393786fceb6cec9e3bb9ba325879 100644
(file)
--- a/
src/ssa_reader.cc
+++ b/
src/ssa_reader.cc
@@
-212,7
+212,7
@@
SSAReader::parse_line (RawSubtitle base, string line, int play_res_x, int play_r
/* Count the number of line breaks */
int line_breaks = 0;
- if (line.length() >
1
) {
+ if (line.length() >
0
) {
for (size_t i = 0; i < line.length() - 1; ++i) {
if (line[i] == '\\' && (line[i+1] == 'n' || line[i+1] == 'N')) {
++line_breaks;