Fixes github issue #92.

This commit is contained in:
Georges Dupéron 2015-08-25 17:44:29 +02:00
parent d7f0d9a597
commit cfc514cd63
2 changed files with 8 additions and 3 deletions

View File

@ -1,4 +1,5 @@
.code {
display: table;
font-family: "Lucida Console", Monaco, monospace;
}
@ -53,12 +54,16 @@ div.report-container {
}
div.line-numbers {
display: inline-block;
display: table-cell;
margin-right: 1em;
}
div.file-lines {
display: inline-block;
display: table-cell;
}
div.lines-wrapper {
display: table-row;
}
/* Sorting Triangles */

View File

@ -145,7 +145,7 @@
(define (file->html path covered?)
(define file (file->string path))
(define lines (string-split file "\n"))
`(div ()
`(div ([class "lines-wrapper"])
,(div:line-numbers (length lines))
,(div:file-lines lines covered?)))