From 67d1afa481f173fdf26469cb6347ae5730289e5f Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Wed, 29 May 2013 11:06:03 +0530 Subject: [PATCH] [grid] allow section breaks and relayout grid --- patches/may_2013/p06_make_notes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/patches/may_2013/p06_make_notes.py b/patches/may_2013/p06_make_notes.py index 02c3d4bb52..caa5a307ca 100644 --- a/patches/may_2013/p06_make_notes.py +++ b/patches/may_2013/p06_make_notes.py @@ -1,4 +1,4 @@ -import webnotes +import webnotes, markdown2 def execute(): webnotes.reload_doc("utilities", "doctype", "note") @@ -11,8 +11,8 @@ def execute(): note = webnotes.bean({ "doctype":"Note", "title": name, - "content": "
".join(webnotes.conn.sql_list("""select answer from tabAnswer - where question=%s""", question.name)), + "content": "
".join([markdown2.markdown(c) for c in webnotes.conn.sql_list(""" + select answer from tabAnswer where question=%s""", question.name)]), "owner": question.owner, "creation": question.creation, "public": 1