From c26628bf7fded84bfe2b7e145ebf5ba8f52bb839 Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 18 Dec 2014 15:57:06 +0000 Subject: [PATCH] update api docs parser --- 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 5d6ba70ca..1fcbf2d17 100644 --- a/static/js/apiDialog.js +++ b/static/js/apiDialog.js @@ -129,7 +129,7 @@ pandora.ui.apiDialog = function() { see: action, action, ... */ var $doc = Ox.SyntaxHighlighter({ - source: string.replace( + source: '\n' + string.replace( /\n(?=(takes \{|returns \{|note: |see: ))/g, '\n\n' ).replace( /(takes|returns|notes|see)(?=( \{|: ))/g, 'BOLD$1BOLD'