Fixes styling formatted content as raw

Refs #2390
This commit is contained in:
Samuel Georges 2016-10-13 06:35:34 +11:00
parent d62bbd5c5b
commit 991f7fc3b8
2 changed files with 7 additions and 4 deletions

View File

@ -115,14 +115,17 @@
color: #2196F3;
}
.plugin-exception-beautifier .beautifier-formatted-content,
.plugin-exception-beautifier .beautifier-raw-content {
background: #fff;
font-family: monospace;
padding: 20px;
white-space: nowrap;
}
width: 100%;
.plugin-exception-beautifier .beautifier-raw-content {
font-family: monospace;
white-space: nowrap;
overflow: auto;
width: 100%;
}
.plugin-exception-beautifier .beautifier-raw-content br {

View File

@ -325,7 +325,7 @@
'</div></div>')
if (source.indexOf('Message-ID:') > 0) {
markup = '<div class="beautifier-raw-content">' + source.trim().replace(/\r\n|\r|\n/g, '<br>').replace(/ {2}/g, '&nbsp;&nbsp;') + '</div>'
markup = '<div class="beautifier-formatted-content">' + source.trim().replace(/\r\n|\r|\n/g, '<br>').replace(/ {2}/g, '&nbsp;&nbsp;') + '</div>'
}
tabs.find('#beautifier-tab-formatted').append(markup)