Ticket #3069: sage-3069.patch

File sage-3069.patch, 1.0 KB (added by was, 13 years ago)
  • sage/server/notebook/worksheet.py

    # HG changeset patch
    # User William Stein <wstein@gmail.com>
    # Date 1210495238 25200
    # Node ID 5e2689f219d060bc8793ca840c3877877d7c00a5
    # Parent  83531e2a029ec031c928a24e3e95ed556f846ec2
    trac #3069 -- notebook -- typeset checkbox doesn't work after save/reload
    
    diff -r 83531e2a029e -r 5e2689f219d0 sage/server/notebook/worksheet.py
    a b class Worksheet: 
    13051305                                          ulimit = self.notebook().get_ulimit())
    13061306        self.__next_block_id = 0
    13071307        self.initialize_sage()
     1308       
     1309        # Check to see if the typeset/pretty print button is checked.
     1310        # If so, send code to initialize the worksheet to have the
     1311        # right pretty printing mode.
     1312        if self.pretty_print():
     1313            self.__sage._send('pretty_print_default(True);')
     1314           
    13081315        return self.__sage
    13091316
    13101317    def eval_asap_no_output(self, cmd, username=None):