Skip to content

Commit

Permalink
Fix replace of all new lines.
Browse files Browse the repository at this point in the history
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
  • Loading branch information
Tithugues committed May 25, 2014
1 parent 64926a8 commit df0d48e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/makegrid.js
Expand Up @@ -642,7 +642,7 @@ function PMA_makegrid(t, enableResize, enableReorder, enableVisib, enableGridEdi

//Add <br> before carriage return.
new_html = escapeHtml(new_html);
new_html = new_html.replace('\n', '<br>\n');
new_html = new_html.replace(/\n/g, '<br>\n');

//remove decimal places if column type not supported
if (($this_field.attr('data-decimals') === 0) && ( $this_field.attr('data-type').indexOf('time') != -1)) {
Expand Down

0 comments on commit df0d48e

Please sign in to comment.