|
@@
-101,8
+101,8
b' class ConverterReveal(ConverterHTML):'
|
|
101
|
text = self.main_body(cell_separator)
|
|
101
|
text = self.main_body(cell_separator)
|
|
102
|
self.delim = [u'slide_type = untouched',
|
|
102
|
self.delim = [u'slide_type = untouched',
|
|
103
|
u'slide_type = -',
|
|
103
|
u'slide_type = -',
|
|
104
|
u'slide_type = header_slide',
|
|
|
|
|
105
|
u'slide_type = slide',
|
|
104
|
u'slide_type = slide',
|
|
|
|
|
105
|
u'slide_type = subslide',
|
|
106
|
u'slide_type = fragment',
|
|
106
|
u'slide_type = fragment',
|
|
107
|
u'slide_type = notes',
|
|
107
|
u'slide_type = notes',
|
|
108
|
u'slide_type = skip'] # keep this one the last
|
|
108
|
u'slide_type = skip'] # keep this one the last
|
|
@@
-160,7
+160,7
b' class ConverterReveal(ConverterHTML):'
|
|
160
|
text.pop(i)
|
|
160
|
text.pop(i)
|
|
161
|
#generation of slides as a list of list
|
|
161
|
#generation of slides as a list of list
|
|
162
|
slides = [list(x[1]) for x in itertools.groupby(text,
|
|
162
|
slides = [list(x[1]) for x in itertools.groupby(text,
|
|
163
|
lambda x: x == u'slide_type = header_slide') if not x[0]]
|
|
163
|
lambda x: x == u'slide_type = slide') if not x[0]]
|
|
164
|
for slide in slides:
|
|
164
|
for slide in slides:
|
|
165
|
slide.insert(0, left)
|
|
165
|
slide.insert(0, left)
|
|
166
|
slide.append(right)
|
|
166
|
slide.append(right)
|
|
@@
-171,11
+171,11
b' class ConverterReveal(ConverterHTML):'
|
|
171
|
slide[i] = slide[i][:4] + \
|
|
171
|
slide[i] = slide[i][:4] + \
|
|
172
|
' class="fragment"' + slide[i][4:]
|
|
172
|
' class="fragment"' + slide[i][4:]
|
|
173
|
# encapsulation of each nested slide
|
|
173
|
# encapsulation of each nested slide
|
|
174
|
if u'slide_type = slide' in slide:
|
|
174
|
if u'slide_type = subslide' in slide:
|
|
175
|
slide.insert(0, left)
|
|
175
|
slide.insert(0, left)
|
|
176
|
slide.append(right)
|
|
176
|
slide.append(right)
|
|
177
|
for i, j in enumerate(slide):
|
|
177
|
for i, j in enumerate(slide):
|
|
178
|
if j == u'slide_type = slide':
|
|
178
|
if j == u'slide_type = subslide':
|
|
179
|
slide[i] = right + left
|
|
179
|
slide[i] = right + left
|
|
180
|
return list(itertools.chain(*slides))
|
|
180
|
return list(itertools.chain(*slides))
|
|
181
|
|
|
181
|
|