diff --git a/app/static/js/groups.js b/app/static/js/groups.js
index ae2007b9fde4291b17b621c53bd33e16417e00c2..3695cf4f7f2d86219ca72b905286c17f74826982 100644
--- a/app/static/js/groups.js
+++ b/app/static/js/groups.js
@@ -33,7 +33,7 @@ $(document).ready(function() {
           if ( data === null ) {
             return "";
           }
-          return '<pre>' + JSON.stringify(data, null, 2) + '</pre>';
+          return '<pre style="white-space: pre-wrap">' + JSON.stringify(data, null, 2) + '</pre>';
         }
       },
       { data: 'hosts' }