##// END OF EJS Templates
Fixed a problem with evaluating indented lines in pure python code....
Fixed a problem with evaluating indented lines in pure python code. :meth:`EmbeddedSphinxShell.process_pure_python` could not process block of code with indentation correctly. For example, the following .. ipython:: python for i in range(10): if i < 5: continue else: pass would result in two IPython lines: In [19]: for i in range(10): ....: if i < 5: ....: continue ....: In [20]: else: ....: pass ....: This would raise various types of error, indentation/snytax, etc. To resolve this problem, added a simple check for indentation in the next line which normally start a new IPython line.

File last commit:

r4657:88fabb9a
r10597:b16ba836
Show More
prettify.css
47 lines | 689 B | text/css | CssLexer
.pln{
color:#000
}
@media screen{
.str{
color:#BA2121;
}.kwd{
color:#008000;
font-weight: bold;
}.com{
color:#408080;
font-style: italic;
}.typ{
color:#606
}.lit{
color:#666666;
}.pun,.opn,.clo{
}.tag{
color:#008
}.atn{
color:#606
}.atv{
color:#080
}.dec,.var{
color:#606
}.fun{
color:red
}
}
pre.prettyprint{
padding:2px;
border:1px solid #888
}
ol.linenums{
margin-top:0;
margin-bottom:0
}
li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{
list-style-type:none
}
li.L1,li.L3,li.L5,li.L7,li.L9{
background:#eee
}