From 442e5b00c8b5bf65041d0a1dafbf8c7eac0d5356 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 24 Nov 2008 16:30:52 -0500 Subject: Fixed broken doctest and inconsitent indentation from not wrapping comments. Also emptied becommands/__init__.py. I didn't understand the plugin interface when I wrote it. --- libbe/comment.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libbe/comment.py') diff --git a/libbe/comment.py b/libbe/comment.py index 7a90cca..c89fd9d 100644 --- a/libbe/comment.py +++ b/libbe/comment.py @@ -140,7 +140,9 @@ class Comment(Tree): From: Date: Thu, 20 Nov 2008 15:55:11 +0000 - Some insightful remarks + Some + insightful + remarks """ if shortname == None: shortname = self.uuid @@ -152,7 +154,7 @@ class Comment(Tree): lines.append("") #lines.append(textwrap.fill(self._clean_string(self.body), # width=(79-indent))) - lines.append(self._clean_string(self.body)) + lines.extend(self._clean_string(self.body).splitlines()) # some comments shouldn't be wrapped... istring = ' '*indent -- cgit