aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--becommands/__init__.py15
-rw-r--r--libbe/comment.py6
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
<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