Skip to content

Commit

Permalink
white-space: pre-wrap on error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Mar 25, 2024
1 parent fdeb624 commit ac3da20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
}
let html = '';
if (event.data.error) {
html = `<div style="padding: 0.5em"><h3>Error</h3><pre>${escapeHtml(event.data.error)}</pre></div>`;
html = `<div style="padding: 0.5em"><h3>Error</h3><pre style="white-space: pre-wrap">${escapeHtml(event.data.error)}</pre></div>`;
} else if (/^text\/html/.exec(event.data.contentType)) {
html = event.data.text;
} else if (/^application\/json/.exec(event.data.contentType)) {
Expand Down

0 comments on commit ac3da20

Please sign in to comment.