Skip to content

Commit fb7bd6d

Browse files
committed
Add some spacing in log
1 parent c17263e commit fb7bd6d

File tree

2 files changed

+11
-19
lines changed

2 files changed

+11
-19
lines changed

R/utils.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,13 @@ push_log <- function(case) {
104104
cat_line(
105105
file = file,
106106
"Environment:",
107-
vdiffr_info()
107+
vdiffr_info(),
108+
""
108109
)
109110
}
110111

111112
diff_lines <- diff_lines(case, case$path, case$testcase)
112-
cat_line(file = file, !!!diff_lines)
113+
cat_line(file = file, "", !!!diff_lines, "")
113114
}
114115
is_checking <- function() {
115116
!nzchar(Sys.getenv("NOT_CRAN"))
@@ -132,6 +133,7 @@ diff_lines <- function(case,
132133

133134
paste_line(
134135
glue("Failed doppelganger: {case$name} ({case$path})"),
136+
"",
135137
!!!lines
136138
)
137139
}

tests/mock.Rout.fail

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ Environment:
22
- vdiffr-svg-engine: 0.9000
33
- vdiffr: 0.2.3.9001
44
- freetypeharfbuzz: 0.2.5
5+
6+
57
Failed doppelganger: myplot (../figs//myplot.svg)
8+
69
< before
710
> after
811
@@ 50,4 / 50,5 @@
@@ -19,7 +22,10 @@ Failed doppelganger: myplot (../figs//myplot.svg)
1922
th: 1.07; stroke: #333333;' clip-path='url(#cpMjguMDl8NzE0LjUyfDU0NC4yN3wy
2023
Mi41Mg==)' />
2124
<defs>
25+
26+
2227
Failed doppelganger: myplot (../figs//myplot.svg)
28+
2329
< before
2430
> after
2531
@@ 50,4 / 50,5 @@
@@ -36,20 +42,4 @@ Failed doppelganger: myplot (../figs//myplot.svg)
3642
th: 1.07; stroke: #333333;' clip-path='url(#cpMjguMDl8NzE0LjUyfDU0NC4yN3wy
3743
Mi41Mg==)' />
3844
<defs>
39-
Failed doppelganger: myplot (../figs//myplot.svg)
40-
< before
41-
> after
42-
@@ 50,4 / 50,5 @@
43-
<rect x='641.72' y='401.98' width='20.80' height='118.58' style='stroke-wi
44-
dth: 1.07; stroke: none; stroke-linecap: butt; fill: #595959;' clip-path='
45-
url(#cpMjguMDl8NzE0LjUyfDU0NC4yN3wyMi41Mg==)' />
46-
<rect x='662.52' y='401.98' width='20.80' height='118.58' style='stroke-wi
47-
dth: 1.07; stroke: none; stroke-linecap: butt; fill: #595959;' clip-path='
48-
url(#cpMjguMDl8NzE0LjUyfDU0NC4yN3wyMi41Mg==)' />
49-
> <line x1='417.09' y1='544.27' x2='417.09' y2='22.52' style='stroke-width:
50-
: 1.07; stroke-linecap: butt;' clip-path='url(#cpMjguMDl8NzE0LjUyfDU0NC4yN3w
51-
: yMi41Mg==)' />
52-
<rect x='28.09' y='22.52' width='686.43' height='521.75' style='stroke-wid
53-
th: 1.07; stroke: #333333;' clip-path='url(#cpMjguMDl8NzE0LjUyfDU0NC4yN3wy
54-
Mi41Mg==)' />
55-
<defs>
45+

0 commit comments

Comments
 (0)