#10637: Implement sage -sws2rst
------------------------------------------------------------+---------------
Reporter: nthiery | Owner:
jason, mpatel, was
Type: enhancement | Status:
needs_work
Priority: major | Milestone:
sage-pending
Component: notebook | Resolution:
Keywords: ReST, worksheet | Work issues:
Report Upstream: Workaround found; Bug reported upstream. | Reviewers:
Nicolas M. ThiƩry, Jason Grout, Karl-Dieter Crisman, Jason Bandlow, John
Palmieri, Simon King, Karl-Dieter Crisman, Pablo Angulo
Authors: Pablo Angulo, Karl-Dieter Crisman | Merged in:
Dependencies: #14330 | Stopgaps:
------------------------------------------------------------+---------------
Comment (by dimpase):
Replying to [comment:140 jdemeyer]:
how about
{{{
sage -i beautifulsoup
}}}
first?
Well, with this I have a different failure (on OSX 10.6.8), rc0 (do I need
rc1???)
{{{
$ sage -t devel/sagenb-main/sagenb/misc/comments2rst.py
Running doctests with ID 2013-04-30-23-31-02-a3c02abb.
Doctesting 1 file.
sage -t devel/sagenb-main/sagenb/misc/comments2rst.py
**********************************************************************
File "devel/sagenb-main/sagenb/misc/comments2rst.py", line 373, in
sagenb.misc.comments2rst.Soup2Rst.get_plain_text
Failed example:
html2rst('<p>Some text with <em>math</em>: $e^{\pi i}=-1$</p>', '')
Expected:
u'Some text with *math* : :math:`e^{\\pi i}=-1`\n'
Got:
u'Some text with *math* : :math:`e^{\\pi i}=-1`\n\n'
**********************************************************************
File "devel/sagenb-main/sagenb/misc/comments2rst.py", line 375, in
sagenb.misc.comments2rst.Soup2Rst.get_plain_text
Failed example:
html2rst('<p>Text with <em>incorrect</p> nesting</em>.', '')
Expected:
u'Text with *incorrect*\n\n nesting\n.'
Got:
u'Text with *incorrect* \n\n nesting\n.'
**********************************************************************
File "devel/sagenb-main/sagenb/misc/comments2rst.py", line 377, in
sagenb.misc.comments2rst.Soup2Rst.get_plain_text
Failed example:
html2rst('<pre>Preformatted: \n a+2\n</pre><p> Not preformatted: \n
a+2\n</p>', '')
Expected:
u'::\n\n Preformatted: \n a+2\n \nNot preformatted:
a\\+2\n'
Got:
u'::\n\n Preformatted: \n a+2\n \n Not preformatted:
a\\+2\n\n'
**********************************************************************
File "devel/sagenb-main/sagenb/misc/comments2rst.py", line 381, in
sagenb.misc.comments2rst.Soup2Rst.get_plain_text
Failed example:
html2rst('<p>some text</p><p>$$</p><p>3.183098861 \cdot
10^{-1}</p><p>$$</p>','')
Expected:
u'some text\n\n.. MATH::\n\n 3.183098861 \\cdot 10^{-1}\n'
Got:
u'some text\n\n.. MATH::\n\n 3.183098861 \\cdot 10^{-1}\n\n.. end
of math\n\n'
**********************************************************************
1 item had failures:
4 of 7 in sagenb.misc.comments2rst.Soup2Rst.get_plain_text
[23 tests, 4 failures, 0.09 s]
----------------------------------------------------------------------
sage -t devel/sagenb-main/sagenb/misc/comments2rst.py # 4 doctests failed
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10637#comment:141>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.