On May 22, 10:17 pm, Robert Bradshaw <rober...@math.washington.edu> wrote: > Though in Sage we use _repr_, which is used by __str__, __repr__ and > _latex_. I think this is a question about the default _latex_ which > does some postprocessing of _repr_. > > sage: class A(SageObject): > ....: def _repr_(self): > ....: return "A\n B" > ....: > sage: latex(A()) > \texttt{A > B} > > I'd imagine we could substituted all newlines with something > (\newline?), and leading/multiple whitespace with something (~), which > wouldn't be too hard. > > - Robert
Hi Robert, That's precisely what I am talking about! Andrey -- 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