Hello!

I tried "restructuredtext" filters. At first look it seems to work
fine, but I found that section headers doesn't work.

After a while me constructed this patch. Please review and say if it
possible to push it into upstream. Thank you for your attention.

$ svn diff
Index: markup.py
===================================================================
--- markup.py   (revision 11479)
+++ markup.py   (working copy)
@@ -86,7 +86,7 @@
     else:
         docutils_settings = getattr(settings,
"RESTRUCTUREDTEXT_FILTER_SETTINGS", {})
         parts = publish_parts(source=smart_str(value),
writer_name="html4css1", settings_overrides=docutils_settings)
-        return mark_safe(force_unicode(parts["fragment"]))
+        return mark_safe(force_unicode(parts["html_body"]))
 restructuredtext.is_safe = True

 register.filter(textile)

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to