mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
preserve whitespace in messages (#3821)
This commit is contained in:
@@ -326,11 +326,11 @@ class MessageRenderer implements IRenderer {
|
|||||||
|
|
||||||
if (templateId === TemplateIds.MESSAGE) {
|
if (templateId === TemplateIds.MESSAGE) {
|
||||||
$('div.time-stamp').appendTo(container);
|
$('div.time-stamp').appendTo(container);
|
||||||
const message = $('div.message').appendTo(container).getHTMLElement();
|
const message = $('div.message').style('white-space', 'pre').appendTo(container).getHTMLElement();
|
||||||
return { message };
|
return { message };
|
||||||
} else if (templateId === TemplateIds.BATCH) {
|
} else if (templateId === TemplateIds.BATCH) {
|
||||||
const timeStamp = $('div.time-stamp').appendTo(container).getHTMLElement();
|
const timeStamp = $('div.time-stamp').appendTo(container).getHTMLElement();
|
||||||
const message = $('div.batch-start').appendTo(container).getHTMLElement();
|
const message = $('div.batch-start').style('white-space', 'pre').appendTo(container).getHTMLElement();
|
||||||
return { message, timeStamp };
|
return { message, timeStamp };
|
||||||
} else if (templateId === TemplateIds.ERROR) {
|
} else if (templateId === TemplateIds.ERROR) {
|
||||||
$('div.time-stamp').appendTo(container);
|
$('div.time-stamp').appendTo(container);
|
||||||
|
|||||||
Reference in New Issue
Block a user