Просмотр исходного кода

Replace newlines with <br/>. That makes stack traces more readable.

Jonny Schulz 12 лет назад
Родитель
Сommit
cfd26f601f
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 '';
   }
-});
+});