Skip to content

Commit bee3380

Browse files
authored
Merge pull request #384 from dferrand/iss302
Don't collapse whitespaces in results and output null in italic
2 parents 47c72e8 + 53d4ca1 commit bee3380

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
@@ -497,7 +497,12 @@ export function generateScroller(basicSelect: string, isCL: boolean, withCancel?
497497
498498
if (!isJson) {
499499
// Append a text node to the cell
500+
newDiv.style.whiteSpace = "pre";
501+
newDiv.style["font-family"] = "monospace";
500502
newDiv.appendChild(document.createTextNode(cell === undefined ? 'null' : cell));
503+
if(cell === undefined || cell === null) {
504+
newDiv.style["font-style"] = "italic";
505+
}
501506
}
502507
503508
newCell.column = columnName;

0 commit comments

Comments
 (0)