X-Git-Url: http://git.scottworley.com/tablify/blobdiff_plain/28cf4fa29f4e47d8b78894fbe86b175e0ab292be..5ffe8e3a8394fc46b50659b0e197b0b0a22e18c8:/src/lib.rs?ds=sidebyside
diff --git a/src/lib.rs b/src/lib.rs
index 3e0efd0..cfaeb4b 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -6,11 +6,11 @@ use std::iter::Iterator;
pub struct Config {}
-const HEADER: &str = "
+const HEADER: &str = r#"
-
-
+
+
@@ -35,7 +35,7 @@ const HEADER: &str = "
-";
+"#;
const FOOTER: &str = "
@@ -194,7 +194,7 @@ fn render_instance(instance: &Option) -> HTML {
}
}
-fn render_cell(col: &str, row: &Row) -> HTML {
+fn render_cell(col: &str, row: &mut Row) -> HTML {
let row_label = HTML::escape(row.label.as_ref());
let col_label = HTML::escape(col);
let instances: Option<&Vec