#5245: treat truncated HTML intelligently
----------------------+-----------------------------------------------------
Reporter: schilly | Owner: boothby
Type: defect | Status: new
Priority: major | Milestone: sage-3.4.1
Component: notebook | Keywords:
----------------------+-----------------------------------------------------
from the
[http://spreadsheets.google.com/ver?key=pCwvGVwSMxTzT6E2xNdo5fA&t=1234452850833000&pt=1234452830833000&diffWidget=true&s=AJVazbVHq6MFP1rt4M9kABykB37gF_Uy_g
notebook "report problem" bugtracker]
Too long HTML outputs are truncated in the notebook. A silly example:
{{{
html('<table>'+'<tr>'+
'\n'.join(('<td>'+'</td><td>'.join(
'<font color="#0000ff" style="background-color: #dddddd;">%s</font>'
% (row*column)
for column in range(1, 25))+'</td>')+'</tr>'
for row in range(1, 20))+'</table>')
}}}
This produces "WARNING: Output truncated! full_output.txt" and the
displayed HTML is somewhat garbled (truncation doesn't work so well for
HTML, obviously). Wrapping the expression around show() changes nothing.
Expected:
Program-generated HTML is a quite nice way to visualize some things
quickly: The output may be long though (especially for quick & dirty
scripts), even when the actually displayed content does not take much
space on screen. Sage shouldn't be so quick to truncate HTML, and even if
it does truncate sometimes (I'm not sure if it should), '''the output
should be a .html file, not .txt, so that the browser displays it
correctly by default'''.
---
Note by me: changing the ending isn't everything, also the mime-content
type has to change. maybe it should not be a txt output in the first place
and everything html as a default...
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5245>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---