Show More
@@ -104,6 +104,7 b' class ConverterReveal(ConverterHTML):' | |||
|
104 | 104 | u'slide_type = header_slide', |
|
105 | 105 | u'slide_type = slide', |
|
106 | 106 | u'slide_type = fragment', |
|
107 | u'slide_type = notes', | |
|
107 | 108 | u'slide_type = skip'] # keep this one the last |
|
108 | 109 | text_cell_render = \ |
|
109 | 110 | u'<div class="text_cell_render border-box-sizing rendered_html">' |
@@ -119,8 +120,10 b' class ConverterReveal(ConverterHTML):' | |||
|
119 | 120 | text[i - 1] = self.delim[3] |
|
120 | 121 | elif j == self.delim[4]: |
|
121 | 122 | text[i - 1] = self.delim[4] |
|
122 | else: | |
|
123 | elif j == self.delim[5]: | |
|
123 | 124 | text[i - 1] = self.delim[5] |
|
125 | else: | |
|
126 | text[i - 1] = self.delim[6] | |
|
124 | 127 | text[i] = text_cell_render |
|
125 | 128 | text[0] = u'slide_type = header_slide' # defensive code |
|
126 | 129 | text.append(u'slide_type = untouched') # to end search of skipped |
@@ -131,7 +134,9 b' class ConverterReveal(ConverterHTML):' | |||
|
131 | 134 | text = self.clean_text() |
|
132 | 135 | left = '<section>' |
|
133 | 136 | right = '</section>' |
|
134 | set_delim = self.delim[:5] | |
|
137 | notes_start = '<aside class="notes">' | |
|
138 | notes_end = '</aside>' | |
|
139 | set_delim = self.delim[:6] | |
|
135 | 140 | #elimination of skipped cells |
|
136 | 141 | for i, j in enumerate(text): |
|
137 | 142 | if j == u'slide_type = skip': |
@@ -152,7 +157,13 b' class ConverterReveal(ConverterHTML):' | |||
|
152 | 157 | for i, j in enumerate(slide): |
|
153 | 158 | if j == u'slide_type = fragment': |
|
154 | 159 | slide.pop(i) |
|
155 |
slide[i] = slide[i][:4] + |
|
|
160 | slide[i] = slide[i][:4] + \ | |
|
161 | ' class="fragment"' + slide[i][4:] | |
|
162 | # encapsulation of each speaker note | |
|
163 | for i, j in enumerate(slide): | |
|
164 | if j == u'slide_type = notes': | |
|
165 | slide[i] = notes_start | |
|
166 | slide.append(notes_end) # the notes at the slide end | |
|
156 | 167 | # encapsulation of each nested slide |
|
157 | 168 | if u'slide_type = slide' in slide: |
|
158 | 169 | slide.insert(0, '<section>') |
General Comments 0
You need to be logged in to leave comments.
Login now