There is an advanced RestructuredText django plugin I wrote with the
help of David Goodger:

https://svn.python.org/conference/django/trunk/pycon/markup/

This worked very very well, and deals with the problem you ran into by
default.
You can also set overrides in the settings file:
class NullStream(object):
    '''keep the log empty of ReST warnings'''
    def write(*args, **kwdargs): pass
    writeline = write
    writelines = write

RESTRUCTUREDTEXT_FILTER_SETTINGS = { 'cloak_email_addresses': True,
                                     'file_insertion_enabled': False,
                                     'raw_enabled': False,
                                     'warning_stream': NullStream()}

It includes model a validator
    IsValidReST
Two filters:
    restructuredtext
    restructuredtext_has_errors
And a useful template tag:
    Example:
    ::

        {% restructuredtext %}
            ===================================
            To: {{ send_to }}
            ===================================
            {% include "email_form.rst" %}
        {% endrestructuredtext %}


Hope that helps!

On Apr 2, 9:12 am, "Chris Moffitt" <[EMAIL PROTECTED]> wrote:
> > This is normal Restructured Text behaviour, although I agree it's a bit
> > weird when you first see it. It's kind of a consequence of a ReST
> > feature combined with us (Django) diving into the middle of the output
> > processing pipeline to extract only what we need.
>
> Ah yes, it is the "normal behavior" but it can be configured.  Take a look
> here -http://docutils.sourceforge.net/docs/user/config.html
>
> and I think you're specifically looking for this text:
>
> "doctitle_xform
>
>     Enable or disable the promotion of a lone top-level section title to
> document title (and subsequent section title to document subtitle
> promotion; docutils.transforms.frontmatter.DocTitle)."
>
> You'll need to make this change in your /etc/docutils.conf file (or in one
> of the other files it mentions).  Then, it should work for you.
>
> Good luck,
> Chris


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to