diff options
-rw-r--r-- | askbot/models/post.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/askbot/models/post.py b/askbot/models/post.py index 1330f8a8..2f6254a4 100644 --- a/askbot/models/post.py +++ b/askbot/models/post.py @@ -558,9 +558,15 @@ class Post(models.Model): return output def format_for_email(self, quote_level = 0): - """format post for the output in email""" + """format post for the output in email, + if quote_level > 0, the post will be indented that number of times + """ from askbot.templatetags.extra_filters_jinja import absolutize_urls_func - output = absolutize_urls_func(self.html) + output = '' + if self.post_type == 'question': + output =+ '<b>%s</b><br/>' % self.thread.title + + output += absolutize_urls_func(self.html) if self.post_type == 'question':#add tags to the question output += self.format_tags_for_email() quote_style = 'padding-left:5px; border-left: 2px solid #aaa;' |