#18292: Fix HTML output
-------------------------------------+-------------------------------------
       Reporter:  vbraun             |        Owner:
           Type:  defect             |       Status:  needs_info
       Priority:  major              |    Milestone:  sage-6.7
      Component:  notebook           |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Volker Braun       |    Reviewers:  Andrey Novoseltsev
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/vbraun/fix_html_output           |  6def164370b96868c373f85ed81fe861cc2e336e
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by vbraun):

 We could play tricks with the destructor of the !HtmlFragment and only
 show the deprecation if it is not pretty printed:
 {{{
 sage: def foo():
 ....:    html('foo')
 sage: foo()
 foo
 /home/vbraun/Code/sage/src/bin/sage-ipython:2: DeprecationWarning:
 html(...) will change soon to return HTML instead of printing it. Instead
 use pretty_print(html(...)) for strings or just pretty_print(...) for
 math.
 See http://trac.sagemath.org/18292 for details.
   # -*- coding: utf-8 -*-
 }}}
 vs.
 {{{
 sage: def bar():
 ....:     pretty_print(html('bar'))
 sage: bar()
 bar
 }}}
 See attached branch for implementation

--
Ticket URL: <http://trac.sagemath.org/ticket/18292#comment:65>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to