From 442e5b00c8b5bf65041d0a1dafbf8c7eac0d5356 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 24 Nov 2008 16:30:52 -0500 Subject: [PATCH] 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. --- becommands/__init__.py | 15 --------------- libbe/comment.py | 6 ++++-- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/becommands/__init__.py b/becommands/__init__.py index 02c977e..e69de29 100644 --- a/becommands/__init__.py +++ b/becommands/__init__.py @@ -1,15 +0,0 @@ -"Command plugins for the BugsEverywhere be script." - -__all__ = ["set_root", "set", "new", "remove", "list", "show", "close", "open", - "assign", "severity", "status", "target", "comment", "diff", - "help"] - -def import_all(): - for i in __all__: - name = __name__ + "." + i - try: - __import__(name, globals(), locals(), []) - except ImportError: - print "Import of %s failed!" % (name,) - -import_all() 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 -- 2.26.2