#9608: Docbuild warnings in sage/interfaces/matlab.py
-----------------------------+----------------------------------------------
   Reporter:  mpatel         |       Owner:  mvngu       
       Type:  defect         |      Status:  needs_review
   Priority:  blocker        |   Milestone:  sage-4.5.2  
  Component:  documentation  |    Keywords:              
     Author:  Mitesh Patel   |    Upstream:  N/A         
   Reviewer:                 |      Merged:              
Work_issues:                 |  
-----------------------------+----------------------------------------------

Comment(by mpatel):

 I think the problem with the original docstring is that the backslashes
 are not escaped, so perhaps Sphinx interprets the `\n`s as newline
 characters and sees
 {{{
 #!python
         """
         Returns the string s with Matlab's answer prompt removed.

         EXAMPLES::

             sage: s = '
 ans =

      2
 '
             sage: matlab.strip_answer(s)
             '     2'
         """
 }}}
 Not using a raw string but replacing the `\n`s with `\\n`s should also
 work.

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