I believe html(C) is used to display an HTML string (say, "<strong>Hello
World!</strong>"). It is not meant to return an HTML representation of an
arbitrary object. I don't know what does. Someone else may chime in on that.

On Sat, Apr 3, 2010 at 1:12 AM, Simon King <simon.k...@nuigalway.ie> wrote:

> Hi!
>
> If C is any object in sage, then latex(C) first tests whether C has a
> _latex_ method. If this is the case, it is used. Otherwise,
> C.__str__() is used.
>
> Until few minutes ago, I thought that html(C) would work similarly.
> So, I had implemented a _html_ method. However, html(C) immediately
> uses C.__str__(), which is not nice.
>
> Moreover, when I tried to find out what attributes of C are called by
> html(C), I found that indeed *only* __str__ is requested.
>
> Am I missing something? What method needs to be provided to make
> html(C) work? Or does html() itself needs an overhaul?
>
> Best regards,
> Simon
>
> --
> To post to this group, send an email to sage-devel@googlegroups.com
> To unsubscribe from this group, send an email to
> sage-devel+unsubscr...@googlegroups.com<sage-devel%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/sage-devel
> URL: http://www.sagemath.org
>
> To unsubscribe, reply using "remove me" as the subject.
>



-- 
Tim Joseph Dumol <tim (at) timdumol (dot) com>
http://timdumol.com

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

Reply via email to