Carlo Hamalainen wrote:
> The pyx file is the problem.
> The patch is here: http://trac.sagemath.org/sage_trac/ticket/6662
> The examples in the manual are formatted as normal paragraph text
> instead of code blocks. Any ideas?

Try inserting a blank line after "EXAMPLES::":

    def reset_distribution(self):
        """

        This method resets the distribution.



        EXAMPLES::



            sage: T = GeneralDiscreteDistribution([0.1, 0.3, 0.6])

            sage: v = [T.get_random_element() for _ in range(10)]

            sage: T.reset_distribution()

            sage: w = [T.get_random_element() for _ in range(10)]

        """
        if self.r!=NULL:
        [...]


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to