Skip to content

Commit

Permalink
Merge pull request matplotlib#6526 from QuLogic/ttconv-carriage-return
Browse files Browse the repository at this point in the history
ttconv: Also replace carriage return with spaces.
  • Loading branch information
jenshnielsen committed Jun 13, 2016
1 parent 96fb3a3 commit 77caea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extern/ttconv/ttutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void TTStreamWriter::putline(const char *a)
void replace_newlines_with_spaces(char *a) {
char* i = a;
while (*i != 0) {
if (*i == '\n')
if (*i == '\r' || *i == '\n')
*i = ' ';
i++;
}
Expand Down

0 comments on commit 77caea0

Please sign in to comment.