Commit ce869dbb by Rashid Khan

Merge pull request #126 from bloonix/master

Replace newlines with <br/>.
parents 481ef2d1 cfd26f60
...@@ -274,9 +274,10 @@ angular.module('kibana.table', []) ...@@ -274,9 +274,10 @@ angular.module('kibana.table', [])
replace(/&/g, '&amp;'). replace(/&/g, '&amp;').
replace(/</g, '&lt;'). replace(/</g, '&lt;').
replace(/>/g, '&gt;'). replace(/>/g, '&gt;').
replace(/\r?\n/g, '<br/>').
replace(/@start-highlight@/g, '<code class="highlight">'). replace(/@start-highlight@/g, '<code class="highlight">').
replace(/@end-highlight@/g, '</code>') replace(/@end-highlight@/g, '</code>')
} }
return ''; return '';
} }
}); });
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment