##// END OF EJS Templates
Getting linearity to reveal fragments. This avoid rendering of - (none) cells before fragments.
damianavila -
Show More
@@ -55,7 +55,14 b' class RevealHelpPreprocessor(Preprocessor):'
55 worksheet.cells[index - 1].metadata.slide_helper = 'slide_end'
55 worksheet.cells[index - 1].metadata.slide_helper = 'slide_end'
56 if cell.metadata.slide_type in ['subslide']:
56 if cell.metadata.slide_type in ['subslide']:
57 worksheet.cells[index - 1].metadata.slide_helper = 'subslide_end'
57 worksheet.cells[index - 1].metadata.slide_helper = 'subslide_end'
58
58 if cell.metadata.slide_type in ['fragment']:
59 try:
60 i = 1
61 while 1:
62 worksheet.cells[index + i].metadata.frag_helper = 'fragment_end'
63 i += 1
64 except IndexError as e:
65 pass #Last cell doesn't have a next one
59
66
60 if not isinstance(resources['reveal'], dict):
67 if not isinstance(resources['reveal'], dict):
61 resources['reveal'] = {}
68 resources['reveal'] = {}
@@ -10,7 +10,13 b''
10 <section>
10 <section>
11 {{ super() }}
11 {{ super() }}
12 {%- elif cell.metadata.slide_type in ['-'] -%}
12 {%- elif cell.metadata.slide_type in ['-'] -%}
13 {%- if cell.metadata.frag_helper in ['fragment_end'] -%}
14 <div class="fragment">
15 {{ super() }}
16 </div>
17 {%- else -%}
13 {{ super() }}
18 {{ super() }}
19 {%- endif -%}
14 {%- elif cell.metadata.slide_type in ['skip'] -%}
20 {%- elif cell.metadata.slide_type in ['skip'] -%}
15 <div style=display:none>
21 <div style=display:none>
16 {{ super() }}
22 {{ super() }}
General Comments 0
You need to be logged in to leave comments. Login now