X-Git-Url: http://git.scottworley.com/tablify/blobdiff_plain/a1a4b3c8f14d52f8b85e7fd72b5c430fe4407483..215756150995ba0b10ae8b5d63b17553d251e519:/src/lib.rs?ds=sidebyside diff --git a/src/lib.rs b/src/lib.rs index 859b3c1..d85de02 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -322,14 +322,14 @@ fn render_cell(col: &str, row: &mut Row) -> HTML { Some(content) => content == "×", }), }; - let class = HTML::from(if is_empty { "" } else { "yes" }); + let class = HTML::from(if is_empty { "" } else { r#" class="yes""# }); let contents = match instances { None => HTML::from(""), Some(is) => render_instances(is), }; row.entries.remove(col); HTML(format!( - r#"{contents}"# + r#"{contents}"# )) } @@ -697,7 +697,7 @@ mod tests { } ), HTML::from( - r#""# + r#""# ) ); assert_eq!( @@ -709,7 +709,7 @@ mod tests { } ), HTML::from( - r#""# + r#""# ) ); assert_eq!( @@ -772,7 +772,7 @@ mod tests { } ), HTML::from( - r#"×"# + r#"×"# ) ); assert_eq!( @@ -882,7 +882,7 @@ mod tests { }) ), HTML::from( - r#"nopebar + r#"nopebar "# ) );