fixing error in counting reveal slides
This commit is contained in:
parent
335afba9c0
commit
8c31678b4e
1 changed files with 2 additions and 1 deletions
|
@ -9,7 +9,8 @@ pub fn count_slides_and_fragments(html_file_path: &Path) -> i32 {
|
||||||
.expect("Failed to read HTML file");
|
.expect("Failed to read HTML file");
|
||||||
|
|
||||||
// Split HTML content by slide delimiters
|
// Split HTML content by slide delimiters
|
||||||
let slide_delimiter = "<section";
|
// Needs a space after to ensure we are grabbing only real slides
|
||||||
|
let slide_delimiter = "<section ";
|
||||||
let slide_content: Vec<&str> =
|
let slide_content: Vec<&str> =
|
||||||
html_content.split(slide_delimiter).collect();
|
html_content.split(slide_delimiter).collect();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue