8000 ttconv: Also replace carriage return with spaces. by QuLogic · Pull Request #6526 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

ttconv: Also replace carriage return with spaces. #6526

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 13, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
ttconv: Also replace carriage return with spaces.
Multi-line strings will cause issues in comments since the secondary
lines will not be comments. This replacement is already done for newline
characters (\n), but not carriage return (\r) which is prevalent on
Windows.
  • Loading branch information
QuLogic committed Jun 1, 2016
commit d49faf82fb3df4f7f08c498db7e845174d6834a7
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