#17371: The rst contents directive does not work with sagenb (wrong anchors)
----------------------------+------------------------
       Reporter:  tmonteil  |        Owner:
           Type:  defect    |       Status:  new
       Priority:  major     |    Milestone:  sage-6.5
      Component:  notebook  |   Resolution:
       Keywords:            |    Merged in:
        Authors:            |    Reviewers:
Report Upstream:  N/A       |  Work issues:
         Branch:            |       Commit:
   Dependencies:            |     Stopgaps:
----------------------------+------------------------
Changes (by kcrisman):

 * cc: nthiery, slabbe (added)


Comment:

 My guess on the original problem is that
 
https://github.com/sagemath/sagenb/blob/master/sagenb/notebook/docHTMLProcessor.py
 isn't handling this properly.  I wonder if that might also happen with an
 html document with intra-document links?  If you could run docutils on
 your rst file and then upload that html file to the notebook and see what
 happens, that could also be useful.  Or post a minimal rst file that
 doesn't work.

 Sebastien, looks like you wrote the rst converter - any ideas?

 ----

 I get the same error for the `sage -rst2sws` - apparently after processing
 most of it, because I get error messages for stuff when I put one that has
 roles it doesn't recognize.  Perhaps no one has used this recently and
 there was some change in the notebook that caused problems.

 Once again, Sebastien, I think you wrote this - any ideas?  Sorry for the
 double question, just trying to figure this out and I haven't looked
 closely at either of these things before.
 {{{
 from sage.misc.misc import tmp_dir
 nb = Notebook(tmp_dir()+'.sagenb')

 # create a worksheet
 W = nb.create_new_worksheet(title, 'admin')
 }}}
 Maybe new notebooks no longer have a default admin user.  I can confirm
 that this ''did'' work in Sage 5.2, but already was broken in Sage 5.13...

--
Ticket URL: <http://trac.sagemath.org/ticket/17371#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 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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to