Skip to content

Commit

Permalink
Fix rendering newlines in raw data view
Browse files Browse the repository at this point in the history
  • Loading branch information
kasnerz committed Dec 11, 2024
1 parent 5ca78f7 commit 3831d9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion factgenie/static/js/browse.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, '<br>');
var rawDataStr = JSON.stringify(data.raw_data, null, 2).replace(/\\n/g, '\n');

if (rawDataStr[0] == '"') {
// remove the first and last double quotes
Expand Down

0 comments on commit 3831d9b

Please sign in to comment.