Minor fixes to get unittests working again.
authorW. Trevor King <wking@drexel.edu>
Sun, 12 Jul 2009 12:52:50 +0000 (08:52 -0400)
committerW. Trevor King <wking@drexel.edu>
Sun, 12 Jul 2009 12:52:50 +0000 (08:52 -0400)
libbe/comment.py

index 7acbbb10962af32008cff0375b41a2b04a2fc4e4..a085741a9c716b478776a45f0c4837392c217fb3 100644 (file)
@@ -87,7 +87,6 @@ def list_to_root(comments, bug, root=None):
         if rep == None or rep == bug.uuid:
             root_comments.append(comm)
         else:
-            print comm.in_reply_to
             parentUUID = comm.in_reply_to
             parent = uuid_map[parentUUID]
             parent.add_reply(comm)
@@ -351,7 +350,7 @@ class Comment(Tree, settings_object.SavedSettingsObject):
             self.alt_id = uuid
         if body != None:
             if self.content_type.startswith("text/"):
-                self.body = body
+                self.body = body+"\n" # restore trailing newline
             else:
                 self.body = base64.decodestring(body)