Show More
@@ -18,14 +18,14 b' class ConverterReveal(ConverterMarkdown):' | |||||
18 | self.inline_prompt = inline_prompt |
|
18 | self.inline_prompt = inline_prompt | |
19 |
|
19 | |||
20 | def switch_meta(self, m_list): |
|
20 | def switch_meta(self, m_list): | |
21 |
"switch metadata delimiters |
|
21 | "switch metadata delimiters order to build properly the slides" | |
22 | if len(m_list) > 1: |
|
22 | if len(m_list) > 1: | |
23 | if not (len(m_list) == 2 and m_list[1] == [u'new_fragment = True']): |
|
23 | if not (len(m_list) == 2 and m_list[1] == [u'new_fragment = True']): | |
24 | m_list[0], m_list[1] = m_list[1], m_list[0] |
|
24 | m_list[0], m_list[1] = m_list[1], m_list[0] | |
25 | return m_list |
|
25 | return m_list | |
26 |
|
26 | |||
27 | def meta2str(self, meta): |
|
27 | def meta2str(self, meta): | |
28 |
"transform metadata to a |
|
28 | "transform metadata dictionary to a string containing delimiters for slides" | |
29 | try: |
|
29 | try: | |
30 | meta_tuple = meta[u'slideshow'].items() |
|
30 | meta_tuple = meta[u'slideshow'].items() | |
31 | except KeyError as e: |
|
31 | except KeyError as e: | |
@@ -75,7 +75,7 b' class ConverterReveal(ConverterMarkdown):' | |||||
75 | return u'\n'.join(lines) |
|
75 | return u'\n'.join(lines) | |
76 |
|
76 | |||
77 | def build_slides(self, cell_separator='\n'): |
|
77 | def build_slides(self, cell_separator='\n'): | |
78 | "build the slides from text list" |
|
78 | "build the slides structure from text list and delimiters" | |
79 | text = self.main_body(cell_separator) |
|
79 | text = self.main_body(cell_separator) | |
80 | delim_false = [u'new_section = False', u'new_subsection = False', u'new_fragment = False'] |
|
80 | delim_false = [u'new_section = False', u'new_subsection = False', u'new_fragment = False'] | |
81 | text = [x for x in text if not x in delim_false] |
|
81 | text = [x for x in text if not x in delim_false] |
General Comments 0
You need to be logged in to leave comments.
Login now