On 16 Sep 10:34, Exe wrote:
> > What isn't working with section headers? They seem to be working fine
> > in the cases that I use them...
> >
> > Can you give an ReST example that is failing to render correctly?
>
> Shure. Test program to reproduce problem:
>
> ####################################
> from docutils.core import publish_parts
>
> content="""
> TEST HEADER
> ===========
>
> test
> """
>
> doc = publish_parts(source=content, writer_name="html4css1")
> print("FRAGMENT:")
> print(doc['fragment'])
> print
> print("FULL BODY:")
> print(doc['html_body'])
> ####################################
Interestingly, if the first title isn't the first line, then this works
fine... i.e. if you do:
content="""
test
TEST_HEADER
===========
test
"""
You'll get the expected result... how often does your ReST content start
with a heading? (My models tend to have a seperate title field, and so
the content tends to not start with a heading, hence not having seen
this).
Cheers,
--
Brett Parker
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django developers" 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/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---