Show More
@@ -43,11 +43,10 b' class RevealHelpPreprocessor(Preprocessor):' | |||||
43 | preprocessors to pass variables into the Jinja engine. |
|
43 | preprocessors to pass variables into the Jinja engine. | |
44 | """ |
|
44 | """ | |
45 |
|
45 | |||
46 |
for worksheet in nb.worksheets |
|
46 | for worksheet in nb.worksheets: | |
47 | for index, cell in enumerate(worksheet.cells): |
|
47 | for index, cell in enumerate(worksheet.cells): | |
48 |
|
48 | |||
49 | #Make sure the cell has slideshow metadata. |
|
49 | #Make sure the cell has slideshow metadata. | |
50 | cell.metadata.align_type = cell.get('metadata', {}).get('slideshow', {}).get('align_type', 'Left') |
|
|||
51 | cell.metadata.slide_type = cell.get('metadata', {}).get('slideshow', {}).get('slide_type', '-') |
|
50 | cell.metadata.slide_type = cell.get('metadata', {}).get('slideshow', {}).get('slide_type', '-') | |
52 |
|
51 | |||
53 | #Get the slide type. If type is start of subslide or slide, |
|
52 | #Get the slide type. If type is start of subslide or slide, |
@@ -79,7 +79,6 b' class Testrevealhelp(PreprocessorTestsBase):' | |||||
79 | # Make sure correct metadata tags are available on every cell. |
|
79 | # Make sure correct metadata tags are available on every cell. | |
80 | for cell in cells: |
|
80 | for cell in cells: | |
81 | assert 'slide_type' in cell.metadata |
|
81 | assert 'slide_type' in cell.metadata | |
82 | assert 'align_type' in cell.metadata |
|
|||
83 |
|
82 | |||
84 | # 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 | |
85 | # cells. |
|
84 | # cells. |
@@ -1,4 +1,4 b'' | |||||
1 |
{%- extends 'reveal_internals/ |
|
1 | {%- extends 'reveal_internals/reveal_cells.tpl' -%} | |
2 |
|
2 | |||
3 |
|
3 | |||
4 | {%- block any_cell scoped -%} |
|
4 | {%- block any_cell scoped -%} |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now