Show More
@@ -65,8 +65,8 class RevealHelpPreprocessor(Preprocessor): | |||||
65 | worksheet.cells[index + i].metadata.frag_number = index |
|
65 | worksheet.cells[index + i].metadata.frag_number = index | |
66 | i += 1 |
|
66 | i += 1 | |
67 | #Restart the slide_helper when the cell status is changed |
|
67 | #Restart the slide_helper when the cell status is changed | |
68 |
#to |
|
68 | #to other types. | |
69 | if cell.metadata.slide_type in ['-']: |
|
69 | if cell.metadata.slide_type in ['-', 'skip', 'notes', 'fragment']: | |
70 | worksheet.cells[index - 1].metadata.slide_helper = '-' |
|
70 | worksheet.cells[index - 1].metadata.slide_helper = '-' | |
71 |
|
71 | |||
72 | if not isinstance(resources['reveal'], dict): |
|
72 | if not isinstance(resources['reveal'], dict): |
@@ -82,7 +82,8 class Testrevealhelp(PreprocessorTestsBase): | |||||
82 |
|
82 | |||
83 | # Make sure slide end is only applied to the cells preceeding slide |
|
83 | # Make sure slide end is only applied to the cells preceeding slide | |
84 | # cells. |
|
84 | # cells. | |
85 |
assert 'slide_helper' |
|
85 | assert 'slide_helper' in cells[1].metadata | |
|
86 | self.assertEqual(cells[1].metadata['slide_helper'], '-') | |||
86 |
|
87 | |||
87 | # Verify 'slide-end' |
|
88 | # Verify 'slide-end' | |
88 | assert 'slide_helper' in cells[0].metadata |
|
89 | assert 'slide_helper' in cells[0].metadata |
General Comments 0
You need to be logged in to leave comments.
Login now