##// END OF EJS Templates
Fix propagation of fragments across multiple slides/subslides.
damianavila -
Show More
@@ -48,9 +48,15 b' class RevealHelpPreprocessor(Preprocessor):'
48 nb.cells[index].metadata.frag_number = index
48 nb.cells[index].metadata.frag_number = index
49 i = 1
49 i = 1
50 while i < len(nb.cells) - index:
50 while i < len(nb.cells) - index:
51 nb.cells[index + i].metadata.frag_helper = 'fragment_end'
51 # We need to break the loop when a new slide or subslide is
52 nb.cells[index + i].metadata.frag_number = index
52 # found to avoid the propagation of the data-fragment-index
53 i += 1
53 # across multiple slides/subslides
54 if nb.cells[index + i].metadata.slideshow.slide_type in ['slide', 'subslide']:
55 break
56 else:
57 nb.cells[index + i].metadata.frag_helper = 'fragment_end'
58 nb.cells[index + i].metadata.frag_number = index
59 i += 1
54 # Restart the slide_helper when the cell status is changed
60 # Restart the slide_helper when the cell status is changed
55 # to other types.
61 # to other types.
56 if cell.metadata.slide_type in ['-', 'skip', 'notes', 'fragment']:
62 if cell.metadata.slide_type in ['-', 'skip', 'notes', 'fragment']:
General Comments 0
You need to be logged in to leave comments. Login now