#4575: [with patch, needs work] Option to show nested lists as html tables
-------------------------+--------------------------------------------------
 Reporter:  whuss        |        Owner:  whuss     
     Type:  enhancement  |       Status:  reopened  
 Priority:  major        |    Milestone:  sage-3.2.2
Component:  notebook     |   Resolution:            
 Keywords:               |  
-------------------------+--------------------------------------------------
Changes (by mabshoff):

  * summary:  [with patch, positive review] Option to show nested lists as
              html tables => [with patch, needs work] Option
              to show nested lists as html tables

Comment:

 {{{
 sage -t  "devel/sage/sage/misc/functional.py"
 **********************************************************************
 File
 "/home/jaap/work/downloads/sage-3.2.1.alpha2/devel/sage/sage/misc/functiona
 l.py", line 891:
      sage: show([(i, j, i == j) for i in [0..1] for j in [0..1]],
 table_form = True)
 Expected:
      <html>
      <div class="notruncate">
      <table class="table_form">
      <tbody>
      <tr class ="row-a">
      <td><span class="math">0</span></td>
      <td><span class="math">0</span></td>
      <td><span class="math">\mbox{\rm True}</span></td>
      </tr>
      <tr class ="row-b">
      <td><span class="math">0</span></td>
      <td><span class="math">1</span></td>
      <td><span class="math">\mbox{\rm False}</span></td>
      </tr>
      <tr class ="row-a">
      <td><span class="math">1</span></td>
      <td><span class="math">0</span></td>
      <td><span class="math">\mbox{\rm False}</span></td>
      </tr>
      <tr class ="row-b">
      <td><span class="math">1</span></td>
      <td><span class="math">1</span></td>
      <td><span class="math">\mbox{\rm True}</span></td>
      </tr>
      </tbody>
      </table>
      </div>
      </html>
 Got:
      <html>
      <div class="notruncate">
      <table class="table_form">
      <tbody>
      <tr class ="row-a">
      <td><span class="math">0</span></td>
      <td><span class="math">0</span></td>
      <td><span class="math">True</span></td>
      </tr>
      <tr class ="row-b">
      <td><span class="math">0</span></td>
      <td><span class="math">1</span></td>
      <td><span class="math">False</span></td>
      </tr>
      <tr class ="row-a">
      <td><span class="math">1</span></td>
      <td><span class="math">0</span></td>
      <td><span class="math">False</span></td>
      </tr>
      <tr class ="row-b">
      <td><span class="math">1</span></td>
      <td><span class="math">1</span></td>
      <td><span class="math">True</span></td>
      </tr>
      </tbody>
      </table>
      </div>
      </html>
 **********************************************************************
 1 items had failures:
     1 of   5 in __main__.example_53
 ***Test Failed*** 1 failures.
 For whitespace errors, see the file
 /home/jaap/downloads/sage-3.2.1.alpha2/tmp/.doctest_functional.py
          [11.5 s]
 exit code: 1024
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4575#comment:10>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to