Skip to content

Commit abbe7b8

Browse files
committed
Cheap fix to avoid tabs from paste.
1 parent ebbba87 commit abbe7b8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugins/media/media.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3086,6 +3086,9 @@ char* ctr_internal_media_normalize_line_endings(char* original_text) {
30863086
for (i = 0; i < len; i++) {
30873087
previous_char = current_char;
30883088
current_char = original_text[i];
3089+
if (current_char == '\t') {
3090+
current_char = ' ';
3091+
}
30893092
if (current_char == '\n' && previous_char != '\r') {
30903093
normalized_text[d + i] = '\r';
30913094
d++;

0 commit comments

Comments
 (0)