From 95fd86238889017e8513a5aa4525c7084e4e464d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0lteri=C5=9F=20Ero=C4=9Flu?= Date: Wed, 29 Apr 2020 18:52:24 +0300 Subject: [PATCH] Added css to whois modal to handle newlines --- static/js/lg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/lg.js b/static/js/lg.js index 358fc95..1a8b496 100644 --- a/static/js/lg.js +++ b/static/js/lg.js @@ -58,7 +58,7 @@ $(function(){ link = $(this).attr('href'); $.getJSON(link, function(data) { $(".modal h3").html(data.title); - $(".modal .modal-body > p").html(data.output); + $(".modal .modal-body > p").css("white-space", "pre-line").text(data.output); $(".modal").modal('show'); }); });