Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 77caea0

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

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎extern/ttconv/ttutil.cpp

Copy file name to clipboardExpand all lines: extern/ttconv/ttutil.cpp
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.