From 3831d9bf918b0334831ba4f27fe6ffa0ac08bde9 Mon Sep 17 00:00:00 2001 From: Zdenek Kasner Date: Wed, 11 Dec 2024 11:41:10 +0100 Subject: [PATCH] Fix rendering newlines in raw data view --- factgenie/static/js/browse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/factgenie/static/js/browse.js b/factgenie/static/js/browse.js index 0452f9e..98afddb 100644 --- a/factgenie/static/js/browse.js +++ b/factgenie/static/js/browse.js @@ -378,7 +378,7 @@ function createSpanOpening(annotation, level, annotation_span_categories, displa } function showRawData(data) { - var rawDataStr = JSON.stringify(data.raw_data, null, 2).replace(/\\n/g, '
'); + var rawDataStr = JSON.stringify(data.raw_data, null, 2).replace(/\\n/g, '\n'); if (rawDataStr[0] == '"') { // remove the first and last double quotes