Switch to side-by-side view
--- a/pyforge/pyforge/model/discuss.py +++ b/pyforge/pyforge/model/discuss.py @@ -300,8 +300,11 @@ return 'Re: ' + self.subject def reply_text(self): - l = [ '%s wrote:' % self.author().display_name ] - l += [ '> ' + line for line in self.text.split('\n') ] + if self.text: + l = [ '%s wrote:' % self.author().display_name ] + l += [ '> ' + line for line in self.text.split('\n') ] + else: + return '' return '\n'.join(l) def delete(self):