sreepathi-ravikumar commited on
Commit
141a650
·
verified ·
1 Parent(s): 5b29fc9

Update rust_highlight/src/lib.rs

Browse files
Files changed (1) hide show
  1. rust_highlight/src/lib.rs +1 -2
rust_highlight/src/lib.rs CHANGED
@@ -63,8 +63,7 @@ fn generate_video_clip(id: usize, text: String, audio_path: String, duration: f6
63
  }
64
 
65
  let visible_indices: Vec<usize> = if skip_spaces {
66
- full_text.char_indices().filter(|&(_, ch)| ch != ' ' && ch != '
67
- ' && ch != '\t').map(|(i, _)| i).collect()
68
  } else {
69
  (0..full_text.len()).collect()
70
  };
 
63
  }
64
 
65
  let visible_indices: Vec<usize> = if skip_spaces {
66
+ full_text.char_indices().filter(|&(_, ch)| ch != ' ' && ch != '\n' && ch != '\t').map(|(i, _)| i).collect()
 
67
  } else {
68
  (0..full_text.len()).collect()
69
  };