From df0d48ec6c5d583a9de2c359e4f1f20330d8e023 Mon Sep 17 00:00:00 2001 From: Hugues Peccatte Date: Sun, 25 May 2014 16:54:18 +0200 Subject: [PATCH] Fix replace of all new lines. Signed-off-by: Hugues Peccatte --- js/makegrid.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/makegrid.js b/js/makegrid.js index c627662a48..b95a56eeab 100644 --- a/js/makegrid.js +++ b/js/makegrid.js @@ -642,7 +642,7 @@ function PMA_makegrid(t, enableResize, enableReorder, enableVisib, enableGridEdi //Add
before carriage return. new_html = escapeHtml(new_html); - new_html = new_html.replace('\n', '
\n'); + new_html = new_html.replace(/\n/g, '
\n'); //remove decimal places if column type not supported if (($this_field.attr('data-decimals') === 0) && ( $this_field.attr('data-type').indexOf('time') != -1)) {