Menu

#33 RestructuredText

open
nobody
None
5
2005-10-21
2005-10-21
Anthon Pang
No

References:

Output RestructuredText (aka ReST, RST, reST, ...)
http://docutils.sourceforge.net/rst.html

For demonstration purposes, I hand-generated (and
attached) what the mupput example might look like.

Note: using python 2.2.1 and the 2005-10-18 snapshot of
docutils, rst2html.py fails when it encounters the
source code section in Mupputs/stage::open_curtains.

(I will update my version of python and report
additional findings.)

Discussion

  • Anthon Pang

    Anthon Pang - 2005-10-21

    Logged In: YES
    user_id=237207

    Re-tested with python 2.4.2 and it handles the source code
    section (better). That said, there's a bug in rst2html.py
    that causes it drop the code indentation.

    Note: the mupput example was generated for a single html
    file. If implemented, this feature would have to do
    something different for external hyperlinks (i.e., in the
    case of multiple files).

     
  • Anthon Pang

    Anthon Pang - 2005-10-21

    Logged In: YES
    user_id=237207

    The example works better if the generated .html file can
    find the .css file. ;)

     
  • Anthon Pang

    Anthon Pang - 2005-10-21

    mupput example as RST

     

Log in to post a comment.