##// END OF EJS Templates
BF: fix nbconert rst input prompt spacing...
Matthew Brett -
Show More
@@ -1,76 +1,79 b''
1 {%- extends 'display_priority.tpl' -%}
1 {%- extends 'display_priority.tpl' -%}
2
2
3
3
4 {% block in_prompt -%}
4 {% block in_prompt %}
5
5 In[{{ cell.prompt_number if cell.prompt_number else ' ' }}]:
6 In[{{ cell.prompt_number if cell.prompt_number else ' ' }}]:
7
6 .. code:: python
8 .. code:: python
9
7 {% endblock in_prompt %}
10 {% endblock in_prompt %}
8
11
9 {% block output_prompt %}
12 {% block output_prompt %}
10 {% if cell.haspyout -%}
13 {% if cell.haspyout -%}
11 Out[{{ cell.prompt_number }}]:
14 Out[{{ cell.prompt_number }}]:
12 {% endif %}
15 {% endif %}
13 {% endblock output_prompt %}
16 {% endblock output_prompt %}
14
17
15 {% block input %}
18 {% block input %}
16 {{ cell.input | indent}}
19 {{ cell.input | indent}}
17 {% endblock input %}
20 {% endblock input %}
18
21
19 {% block pyerr %}
22 {% block pyerr %}
20 ::
23 ::
21 {{ super() }}
24 {{ super() }}
22 {% endblock pyerr %}
25 {% endblock pyerr %}
23
26
24 {% block traceback_line %}
27 {% block traceback_line %}
25 {{ line | indent | strip_ansi }}
28 {{ line | indent | strip_ansi }}
26 {% endblock traceback_line %}
29 {% endblock traceback_line %}
27
30
28 {% block pyout %}
31 {% block pyout %}
29 {% block data_priority scoped %}
32 {% block data_priority scoped %}
30 {{ super() }}
33 {{ super() }}
31 {% endblock %}
34 {% endblock %}
32 {% endblock pyout %}
35 {% endblock pyout %}
33
36
34 {% block stream %}
37 {% block stream %}
35 .. parsed-literal::
38 .. parsed-literal::
36
39
37 {{ output.text | indent }}
40 {{ output.text | indent }}
38 {% endblock stream %}
41 {% endblock stream %}
39
42
40 {% block data_svg %}
43 {% block data_svg %}
41 .. image:: {{ output.svg_filename }}
44 .. image:: {{ output.svg_filename }}
42 {% endblock data_svg %}
45 {% endblock data_svg %}
43
46
44 {% block data_png %}
47 {% block data_png %}
45 .. image:: {{ output.png_filename }}
48 .. image:: {{ output.png_filename }}
46 {% endblock data_png %}
49 {% endblock data_png %}
47
50
48 {% block data_jpg %}
51 {% block data_jpg %}
49 ..jpg image:: {{ output.jpg_filename }}
52 ..jpg image:: {{ output.jpg_filename }}
50 {% endblock data_jpg %}
53 {% endblock data_jpg %}
51
54
52 {% block data_latex %}
55 {% block data_latex %}
53 .. math::
56 .. math::
54 {{ output.latex | indent }}
57 {{ output.latex | indent }}
55 {% endblock data_latex %}
58 {% endblock data_latex %}
56
59
57 {% block data_text scoped %}
60 {% block data_text scoped %}
58 .. parsed-literal::
61 .. parsed-literal::
59 {{ output.text | indent }}
62 {{ output.text | indent }}
60 {% endblock data_text %}
63 {% endblock data_text %}
61
64
62 {% block markdowncell scoped %}
65 {% block markdowncell scoped %}
63 {{ cell.source | markdown2rst }}
66 {{ cell.source | markdown2rst }}
64 {% endblock markdowncell %}
67 {% endblock markdowncell %}
65
68
66 {% block headingcell scoped %}
69 {% block headingcell scoped %}
67 {{ ("#" * cell.level + cell.source) | replace('\n', ' ') | markdown2rst }}
70 {{ ("#" * cell.level + cell.source) | replace('\n', ' ') | markdown2rst }}
68 {% endblock headingcell %}
71 {% endblock headingcell %}
69
72
70 {% block rawcell scoped %}
73 {% block rawcell scoped %}
71 {{ cell.source }}
74 {{ cell.source }}
72 {% endblock rawcell %}
75 {% endblock rawcell %}
73
76
74 {% block unknowncell scoped %}
77 {% block unknowncell scoped %}
75 unknown type {{cell.type}}
78 unknown type {{cell.type}}
76 {% endblock unknowncell %}
79 {% endblock unknowncell %}
General Comments 0
You need to be logged in to leave comments. Login now