Skip to content

Commit 77caea0

Browse files
committed
Merge pull request matplotlib#6526 from QuLogic/ttconv-carriage-return
ttconv: Also replace carriage return with spaces.
1 parent 96fb3a3 commit 77caea0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extern/ttconv/ttutil.cpp

Lines changed: 1 addition & 1 deletion
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)