Fixed broken doctest and inconsitent indentation from not wrapping comments.
authorW. Trevor King <wking@drexel.edu>
Mon, 24 Nov 2008 21:30:52 +0000 (16:30 -0500)
committerW. Trevor King <wking@drexel.edu>
Mon, 24 Nov 2008 21:30:52 +0000 (16:30 -0500)
Also emptied becommands/__init__.py.  I didn't understand the plugin
interface when I wrote it.

becommands/__init__.py
libbe/comment.py

index 02c977e14881e52d635db1f960fea6c8b6d1d6ca..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 (file)
@@ -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()
index 7a90ccad0ae91dc76d07e13effd339e5adaf08e6..c89fd9d836755d1459785bce5513dce15e8fc1a2 100644 (file)
@@ -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