Преглед изворни кода

Merge pull request #126 from bloonix/master

Replace newlines with <br/>.
Rashid Khan пре 12 година
родитељ
комит
ce869dbb09
1 измењених фајлова са 2 додато и 1 уклоњено
  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 '';
   }
-});
+});