From 25dd92dbdb1072a0034e895117bf7d2a9cab6077 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Fri, 17 Aug 2012 23:36:11 +0530 Subject: [PATCH] coerce markdown2.UnicodeWithAttrs to unicode in blog comments --- erpnext/website/blog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/website/blog.py b/erpnext/website/blog.py index e89e2df395..41a6c275d8 100644 --- a/erpnext/website/blog.py +++ b/erpnext/website/blog.py @@ -92,7 +92,7 @@ def add_comment(args=None): import website.web_cache if not args: args = webnotes.form_dict - args['comment'] = markdown2.markdown(args.get('comment') or '') + args['comment'] = unicode(markdown2.markdown(args.get('comment') or '')) comment = webnotes.widgets.form.comments.add_comment(args)