Skip to content

Commit

Permalink
Side-step small SVG width divergence by setting min-width
Browse files Browse the repository at this point in the history
  • Loading branch information
estebank committed Mar 18, 2024
1 parent cc9631a commit 957c0d3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/tools/compiletest/src/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4004,7 +4004,7 @@ impl<'test> TestCx<'test> {
};

let stderr = if force_color_svg {
anstyle_svg::Term::new().render_svg(&proc_res.stderr)
anstyle_svg::Term::new().min_width_px(730).render_svg(&proc_res.stderr)
} else if explicit_format {
proc_res.stderr.clone()
} else {
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/codemap_tests/huge_multispan_highlight.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion tests/ui/diagnostic-flags/colored-session-opt-error.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 957c0d3

Please sign in to comment.