> On Mon, Apr 6, 2009 at 11:47 AM, Baiju M <[email protected]> wrote: >> >> Why we cannot use literal blocks for source code ? >>> From the above documentations, I can see that it works for doctest. >> And we have used it in many places. Also in PyPI >> (long_description), it looks better.
Because reST specification says that they are not doctests any more if you use ::. They are literal blocks in that case. http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#doctest-blocks Specifically the sentence: "If both are present, the literal block syntax takes priority over Doctest block syntax" _______________________________________________ Zope-Dev maillist - [email protected] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
