From 784a0c8df2d75073e9406ec38db68a0cdfdc0664 Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 18 Dec 2014 12:49:02 +0000 Subject: [PATCH] update doc parser regexp --- static/js/apiDialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/apiDialog.js b/static/js/apiDialog.js index 544beeaa..a5a94b61 100644 --- a/static/js/apiDialog.js +++ b/static/js/apiDialog.js @@ -171,7 +171,7 @@ pandora.ui.apiDialog = function() { var code = actions[id].code[1], source = actions[id].code[0], line = Math.round(Ox.last(source.split(':')) || 0), - doc = actions[id].doc.replace(/\n(?=(takes|returns) \{)/g, '\n\n'), + doc = actions[id].doc.replace(/\n(?=(takes \{|returns \{|NOTE: ))/g, '\n\n'), $code, $doc; $doc = Ox.SyntaxHighlighter({ source: doc,