Skip to content

Commit df1e6c2

Browse files
committed
IconImgHelper: use raw string literals for SVG output
1 parent 923cb62 commit df1e6c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/template_helpers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ impl HelperDef for IconImgHelper {
243243

244244
write!(
245245
writer,
246-
"<svg viewBox=\"0 0 24 24\" width=\"{size}\" height=\"{size}\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">{inner_content}</svg>"
246+
r#"<svg viewBox="0 0 24 24" width="{size}" height="{size}" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">{inner_content}</svg>"#
247247
)?;
248248
Ok(())
249249
}

0 commit comments

Comments
 (0)