Skip to content

Commit

Permalink
fix(svg): Each ensure should have a blank line between
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Feb 20, 2024
1 parent e24e1c3 commit c2ab813
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/anstyle-svg/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,14 +202,16 @@ impl Term {
writeln!(&mut buffer, r#" line-height: {line_height}px;"#).unwrap();
writeln!(&mut buffer, r#" }}"#).unwrap();
writeln!(&mut buffer, r#" </style>"#).unwrap();
writeln!(&mut buffer).unwrap();

if self.background {
writeln!(
&mut buffer,
r#" <rect width="100%" height="100%" y="0" rx="4.5" class="{BG}" />"#
)
.unwrap();
writeln!(&mut buffer).unwrap();
}
writeln!(&mut buffer).unwrap();

let text_x = self.padding_px;
let mut text_y = self.padding_px + line_height;
Expand Down
1 change: 1 addition & 0 deletions crates/anstyle-svg/tests/rainbow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions crates/anstyle-svg/tests/rg_linus.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 c2ab813

Please sign in to comment.