The trailing newline is optional actually, since the doctest framework adds a newline. For example, the following should work:
sage: for p in prime_range(3,6): ....: print p 3 5 David On Sun, Jun 23, 2013 at 3:09 PM, leif <not.rea...@online.de> wrote: > Stefan wrote: > >> Tiny remaining comment: when typing a multiline bit of code, the last >> line might just have ....: without spaces. Try this in command-line mode: >> >> sage: for X in range(2): >> ....: print X >> ....: >> 0 >> 1 >> >> I believe the empty line is not optional, so I put it into a doctest or >> two. And for the sake of no trailing whitespace, there's none. >> > > Well, one trailing blank is actually part of the prompt of the empty > continuation line, so you presumably shouldn't remove it. > > Or did I get you wrong? > > > > -leif > > -- > () The ASCII Ribbon Campaign > /\ Help Cure HTML E-Mail > > -- > You received this message because you are subscribed to the Google Groups > "sage-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to > sage-devel+unsubscribe@**googlegroups.com<sage-devel%2bunsubscr...@googlegroups.com> > . > To post to this group, send email to sage-devel@googlegroups.com. > Visit this group at > http://groups.google.com/**group/sage-devel<http://groups.google.com/group/sage-devel> > . > For more options, visit > https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out> > . > > > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/groups/opt_out.