Skip to content

Commit 494c4f6

Browse files
authored
Merge pull request #6526 from QuLogic/ttconv-carriage-return
ttconv: Also replace carriage return with spaces.
2 parents 2ac4e88 + d49faf8 commit 494c4f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extern/ttconv/ttutil.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ void TTStreamWriter::putline(const char *a)
7676
void replace_newlines_with_spaces(char *a) {
7777
char* i = a;
7878
while (*i != 0) {
79-
if (*i == '\n')
79+
if (*i == '\r' || *i == '\n')
8080
*i = ' ';
8181
i++;
8282
}

0 commit comments

Comments
 (0)