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)) {