Merge pull request #2390 from dshoreman/patch-3
Format the formatted tab for mail logs
This commit is contained in:
commit
d62bbd5c5b
|
|
@ -324,6 +324,10 @@
|
|||
'<div class="tab-pane pane-inset" id="beautifier-tab-raw"></div>' +
|
||||
'</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, ' ') + '</div>'
|
||||
}
|
||||
|
||||
tabs.find('#beautifier-tab-formatted').append(markup)
|
||||
tabs.find('#beautifier-tab-raw').append('<div class="beautifier-raw-content">' + $.oc.escapeHtmlString(source.trim()).replace(/\r\n|\r|\n/g, '<br>').replace(/ {2}/g, ' ') + '</div>')
|
||||
|
||||
|
|
@ -358,4 +362,4 @@
|
|||
$('[data-plugin="exception-beautifier"]').exceptionBeautifier()
|
||||
})
|
||||
|
||||
}(window.jQuery)
|
||||
}(window.jQuery)
|
||||
|
|
|
|||
Loading…
Reference in New Issue