diff bitsyblog/blog.py @ 83:666f3051ce31

move cook_entry to its own function
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 17 Nov 2011 12:15:43 -0800
parents 4df927b0d847
children e5a23f5ea14e
line wrap: on
line diff
--- a/bitsyblog/blog.py	Thu Nov 17 12:03:04 2011 -0800
+++ b/bitsyblog/blog.py	Thu Nov 17 12:15:43 2011 -0800
@@ -17,7 +17,7 @@
             self.user = user
 
     def title(self, characters=80):
-        
+
         if '\n' in self.body:
             lines = [i.strip() for i in self.body[:characters].split('\n')]
             if len(lines[0]) > characters:
@@ -33,7 +33,6 @@
     def snippet(self, characters=80):
         if characters:
             if len(self.body) > characters:
-                
 
                 text = ' '.join(self.body[:characters].split()[:-1])
                 if '\n' in text: