changeset 60:94dddb3a5d77

remove useless double-strip
author k0s <k0scist@gmail.com>
date Thu, 14 Jan 2010 13:06:36 -0500
parents 0af1f4ae328d
children 04866e5abb5a
files bitsyblog/bitsyblog.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bitsyblog/bitsyblog.py
+++ b/bitsyblog/bitsyblog.py
@@ -634,17 +634,17 @@ class BitsyBlog(object):
                            
     def restructuredText(self, string):
         """renders a string with restructured text"""
 
         settings = { 'report_level': 5 }
         string = string.strip()
         try:
             
-            parts = docutils.core.publish_parts(string.strip(),
+            parts = docutils.core.publish_parts(string,
                                                 writer_name='html',
                                                 settings_overrides=settings)
             body = parts['body']
         except SystemMessage, e:
             lines = [ cgi.escape(i.strip()) for i in string.split('\n') ]
             body = '<br/>\n'.join(lines)