Skip to content

Commit

Permalink
One more while I'm at it
Browse files Browse the repository at this point in the history
git-svn-id: http://coltrane-blog.googlecode.com/svn/trunk@6 5f8205a5-902a-0410-8b63-8f478ce83d95
  • Loading branch information
ubernostrum committed Mar 13, 2007
1 parent caa8970 commit af61072
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,9 @@ def apply_markup_filter(text):

elif markup_func_name == 'restructuredtext':
from docutils import core
markup_func = core.publish_parts
if 'settings_overrides' not in markup_kwargs:
markup_kwargs.update(settings_overrides=getattr(settings, "RESTRUCTUREDTEXT_FILTER_SETTINGS", {}))
if 'writer_name' not in markup_kwargs:
markup_kwargs.update(writer_name='html4css1')
parts = publish_parts(source=text, **markup_kwargs)
parts = core.publish_parts(source=text, **markup_kwargs)
return parts['fragment']

0 comments on commit af61072

Please sign in to comment.