Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/anstyle-svg/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ impl Term {
use std::fmt::Write as _;

let br = if self.use_html5 { "<br>" } else { "<br />" };
writeln!(buffer, r#" <div class="container {FG}">"#).unwrap();
write!(buffer, r#"<div class="container {FG}">"#).unwrap();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert this commit

I doubt this makes enough of a difference to be worth it and part of the intent for ansstyle-svg is to be usable for tests which involves diffing the content

for line in &styled_lines {
if line.iter().any(|e| e.style.get_bg_color().is_some()) {
for element in line {
Expand All @@ -325,7 +325,7 @@ impl Term {
}
buffer.write_str(br).unwrap();
}
writeln!(buffer, r#" </div>"#).unwrap();
write!(buffer, r#"</div>"#).unwrap();
}

/// Returns the various parts needed to create an HTML page.
Expand Down
Loading
Loading