Explorar el Código

Merge pull request #126 from bloonix/master

Replace newlines with <br/>.
Rashid Khan hace 12 años
padre
commit
ce869dbb09
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      panels/table/module.js

+ 2 - 1
panels/table/module.js

@@ -274,9 +274,10 @@ angular.module('kibana.table', [])
         replace(/&/g, '&amp;').
         replace(/</g, '&lt;').
         replace(/>/g, '&gt;').
+        replace(/\r?\n/g, '<br/>').
         replace(/@start-highlight@/g, '<code class="highlight">').
         replace(/@end-highlight@/g, '</code>')
     }
     return '';
   }
-});
+});