Maybe this is a known issue (or expected behavior?) and I missed it, but I’ve noticed that the last line of preamble and code blocks (and apparently the first line in postamble) is getting effectively removed (replaced with an empty line). some examples:
<program interactive="activecode" language="python">
<code>def __eq__(self, other):
pass</code>
<postamble>testing
something</postamble>
</program>
<program interactive="activecode" language="python">
<preamble>
def f():
return 5</preamble>
<code>f()</code>
</program>
<program interactive="activecode" language="python">
<code>def __ne__(self, other):
pass</code>
</program>
The first program ends up showing only "def __eq__(self, other):” and then “something” and a newline.
The second program shows only "def f():” and misses both the return and the f().
The third program shows only "def __ne__(self, other):” (followed by a newline)
Charilaos Skiadas
Department of Mathematics
Hanover College