Update rust_highlight/src/lib.rs
Browse files
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 |
};
|