Skip to content

Commit 53d4ca1

Browse files
committed
Don't collapse whitespaces in results and output null in italic
1 parent 4d5705b commit 53d4ca1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/views/results/html.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,12 @@ export function generateScroller(basicSelect: string, isCL: boolean, withCancel?
521521
522522
if (!isJson) {
523523
// Append a text node to the cell
524+
newDiv.style.whiteSpace = "pre";
525+
newDiv.style["font-family"] = "monospace";
524526
newDiv.appendChild(document.createTextNode(cell === undefined ? 'null' : cell));
527+
if(cell === undefined || cell === null) {
528+
newDiv.style["font-style"] = "italic";
529+
}
525530
}
526531
527532
newCell.column = columnName;

0 commit comments

Comments
 (0)