diff options
author | W. Trevor King <wking@drexel.edu> | 2008-11-24 16:30:52 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2008-11-24 16:30:52 -0500 |
commit | 442e5b00c8b5bf65041d0a1dafbf8c7eac0d5356 (patch) | |
tree | ae166fbb042c0edc147ca78880fac2eb54cefaa4 /libbe/comment.py | |
parent | bd43a971bae09f0e9a8faa23ea67786b293d43bf (diff) | |
download | bugseverywhere-442e5b00c8b5bf65041d0a1dafbf8c7eac0d5356.tar.gz |
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.
Diffstat (limited to 'libbe/comment.py')
-rw-r--r-- | libbe/comment.py | 6 |
1 files changed, 4 insertions, 2 deletions
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 <BLANKLINE> - 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 |