From c786735b1a1e912bd0db5743bf0fa7f2532c665c Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 27 Aug 2019 11:02:03 +0200 Subject: [PATCH] Improve rendering of plain text mediatags --- www/common/media-tag.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/common/media-tag.js b/www/common/media-tag.js index 186fe4632..9bdaddc25 100644 --- a/www/common/media-tag.js +++ b/www/common/media-tag.js @@ -76,6 +76,7 @@ text: function (metadata, url, content, cfg, cb) { var plainText = document.createElement('div'); plainText.className = "plain-text-reader"; + plainText.setAttribute('style', 'white-space: pre-wrap;'); var reader = new FileReader(); reader.addEventListener('loadend', function (e) { plainText.innerText = e.srcElement.result;