#4440: [with patch, needs work] Automatic Identation
-------------------------+--------------------------------------------------
 Reporter:  ahupfer      |        Owner:  ahupfer   
     Type:  enhancement  |       Status:  new       
 Priority:  minor        |    Milestone:  sage-3.2.1
Component:  notebook     |   Resolution:            
 Keywords:               |  
-------------------------+--------------------------------------------------
Changes (by was):

  * summary:  [with patch, needs review] Automatic Identation => [with
              patch, needs work] Automatic Identation

Comment:

 REVIEW

 This is *REALLY* nice and *almost* works.  It has one bug, which is that
 if you enter a blank line, the auto-indent is off by one.  E.g., I got the
 following when I entered a blank line after the first print statement:
 {{{
 if True:
     print "hi"

    print "mom"
 }}}

 I should have got either
 {{{
 if True:
     print "hi"

     print "mom"
 }}}
 or
 {{{
 if True:
     print "hi"

 print "mom"
 }}}

 Which is a design decision.  To be more like the Python/Ipython command
 line, one would get the latter.  To be more like an IDE, maybe the former.
 I don't care which, just that the current behavior (which is neither) is
 buggy.

 That said, if this bit rots forever that would be bad.  I would almost
 rather have the buggy patch than no patch at all, since even with the bug
 it's pretty nice functionality.

 It would however by nice if there were a way to turn it off.  That will
 have to wait until Timothy Clemans user management features get in.

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