ensure to use a more correct finding of fragments in reveal pres
This commit is contained in:
parent
0ea3d0591a
commit
e07664e9c5
1 changed files with 2 additions and 1 deletions
|
@ -18,7 +18,8 @@ pub fn count_slides_and_fragments(html_file_path: &Path) -> i32 {
|
||||||
let mut num_fragments = 0;
|
let mut num_fragments = 0;
|
||||||
|
|
||||||
for slide_html in slide_content.iter().skip(1) {
|
for slide_html in slide_content.iter().skip(1) {
|
||||||
let fragments = slide_html.matches("fragment").count();
|
let fragments =
|
||||||
|
slide_html.matches("class=\"fragment").count();
|
||||||
num_fragments += fragments;
|
num_fragments += fragments;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue