Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
futursolo committed May 22, 2022
1 parent e5b76a7 commit d4b15f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/yew/src/virtual_dom/vtag.rs
Expand Up @@ -452,13 +452,14 @@ mod feat_ssr {
let write_attr = |w: &mut BufWriter, name: &str, val: Option<&str>| match val {
Some(val) => w.write(
format!(
"{}=\"{}\"",
" {}=\"{}\"",
name,
html_escape::encode_double_quoted_attribute(val)
)
.into(),
),
None => {
w.write(" ".into());
w.write(name.into());
}
};
Expand Down

0 comments on commit d4b15f6

Please sign in to comment.