Skip to content

Commit

Permalink
Cheap fix to avoid tabs from paste.
Browse files Browse the repository at this point in the history
  • Loading branch information
gabordemooij committed Jan 1, 2024
1 parent ebbba87 commit abbe7b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/media/media.c
Original file line number Diff line number Diff line change
Expand Up @@ -3086,6 +3086,9 @@ char* ctr_internal_media_normalize_line_endings(char* original_text) {
for (i = 0; i < len; i++) {
previous_char = current_char;
current_char = original_text[i];
if (current_char == '\t') {
current_char = ' ';
}
if (current_char == '\n' && previous_char != '\r') {
normalized_text[d + i] = '\r';
d++;
Expand Down

0 comments on commit abbe7b8

Please sign in to comment.