[sagenb] 119/157: Revert checking for pretty_print check box status

felix salfelder felix-guest at moszumanska.debian.org
Mon Dec 22 16:51:59 UTC 2014


This is an automated email from the git hooks/post-receive script.

felix-guest pushed a commit to branch master
in repository sagenb.

commit 66cd09c89f49df35917aa136ae9a8ae97ed29395
Author: Volker Braun <vbraun.name at gmail.com>
Date:   Sun Oct 5 15:09:12 2014 +0100

    Revert checking for pretty_print check box status
    
    This allows a just openned worksheet to use the previous
    pretty_print/typeset setting.  Otherwise it is ignored until the user
    clicks on the checkbox.
---
 sagenb/notebook/worksheet.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sagenb/notebook/worksheet.py b/sagenb/notebook/worksheet.py
index 0191cb3..9c7617c 100644
--- a/sagenb/notebook/worksheet.py
+++ b/sagenb/notebook/worksheet.py
@@ -3065,6 +3065,12 @@ except (KeyError, IOError):
         A = self.attached_files()
         for F in A.iterkeys():
             A[F] = 0  # expire all
+
+        # Check to see if the typeset/pretty print button is checked.
+        # If so, send code to initialize the worksheet to have the
+        # right pretty printing mode.
+        if self.pretty_print():
+            S.execute('pretty_print_default(True);')
             
         if not self.is_published():
             self._enqueue_auto_cells()

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagenb.git



More information about the debian-science-commits mailing list