#10637: Implement sage -sws2rst
-----------------------------------+----------------------------------------
   Reporter:  nthiery              |          Owner:  jason, mpatel, was
       Type:  enhancement          |         Status:  needs_review      
   Priority:  major                |      Milestone:  sage-4.7.1        
  Component:  notebook             |       Keywords:  ReST, worksheet   
Work_issues:                       |       Upstream:  N/A               
   Reviewer:  Nicolas ThiƩry, ...  |         Author:  Pablo Angulo      
     Merged:                       |   Dependencies:                    
-----------------------------------+----------------------------------------

Comment(by jason):

 My worksheet name included spaces.  A few images led to this being in the
 text:

 {{{
 .. image:: PREP Quickstart, NumAnalysis_media/cell_5_sage0.png

 }}}

 However, the html output from running sphinx on the rst file included a
 link to this image:

 {{{
 <img alt="PREPQuickstart,NumAnalysis_media/cell_5_sage0.png" class="align-
 center" src="PREPQuickstart,NumAnalysis_media/cell_5_sage0.png" />

 }}}

 (notice the missing spaces)

 I looked around and this is a bug report here:
 https://bitbucket.org/birkenfeld/sphinx/issue/453/spaces-get-stripped-
 from-image-file-names

 According to http://docutils.sourceforge.net/docs/howto/rst-
 directives.html#image, the first thing done in the image directive is to
 discard all whitespace, so this script should probably discard all
 whitespace when making the image links.

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