update width
This commit is contained in:
parent
1d1c49c5fa
commit
70eadeadb2
8 changed files with 104 additions and 40 deletions
|
@ -3,11 +3,13 @@ use std::fs::read_to_string;
|
|||
|
||||
pub fn count_slides_and_fragments(html_file_path: &str) -> i32 {
|
||||
// Read the HTML file
|
||||
let html_content = read_to_string(html_file_path).expect("Failed to read HTML file");
|
||||
let html_content = read_to_string(html_file_path)
|
||||
.expect("Failed to read HTML file");
|
||||
|
||||
// Split HTML content by slide delimiters
|
||||
let slide_delimiter = "<section";
|
||||
let slide_content: Vec<&str> = html_content.split(slide_delimiter).collect();
|
||||
let slide_content: Vec<&str> =
|
||||
html_content.split(slide_delimiter).collect();
|
||||
|
||||
// Count slides and fragments
|
||||
let num_slides = slide_content.len() - 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue