[sagenb] 109/179: Small "doctest" fix

felix salfelder felix-guest at moszumanska.debian.org
Tue May 6 12:05:15 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 785b4a0fce781e36e368eb68cef517d673c31f05
Author: kcrisman <kcrisman at gmail.com>
Date:   Tue Apr 30 14:32:14 2013 -0300

    Small "doctest" fix
    
    worksheet2rst.py
---
 sagenb/misc/worksheet2rst.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sagenb/misc/worksheet2rst.py b/sagenb/misc/worksheet2rst.py
index 4f1de9d..b594262 100644
--- a/sagenb/misc/worksheet2rst.py
+++ b/sagenb/misc/worksheet2rst.py
@@ -143,11 +143,11 @@ def worksheet2rst(s, images_dir=''):
     http://groups.google.com/group/sage-devel/browse_thread/thread/d82cb049ac102f3a)
 
     : from sagenb.misc.worksheet2rst import worksheet2rst
-    : worksheet2rst('<p>some text</p>\n{{{id=1|\nprint 2+2\n///\n4\n}}}')      
-    u'.. -*- coding: utf-8 -*-\n\nsome text\n\n::\n\n    sage: print 2+2\n    4\n\n.. end of output\n'
+    : worksheet2rst('<p>some text</p>\n{{{id=1|\nprint 2+2\n///\n4\n}}}')
+    u'.. -*- coding: utf-8 -*-\n\nPlease write a title for this worksheet!\n========================================\n\nsome text\n\n\n::\n\n    sage: print 2+2\n    4\n\n.. end of output\n'
     : s = '{{{id=2|\nshow(f)\n///\n<html><div class="math">\\sqrt{x}</div></html>\n}}}\n'
     : worksheet2rst(s)
-    u'.. -*- coding: utf-8 -*-\n\n\n::\n\n    sage: show(f)\n\n.. MATH::\n\n    \\sqrt{x}\n\n.. end of output\n'       
+    u'.. -*- coding: utf-8 -*-\n\nPlease write a title for this worksheet!\n========================================\n::\n\n    sage: show(f)\n\n.. MATH::\n\n    \\sqrt{x}\n\n.. end of output\n'
     """
     s = add_title_if_there_is_none(s)
     state = States.COMMENT

-- 
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