diff options
| author | Wenzhuo Liu <mgt@oi-wiki.org> | 2023-09-13 16:01:20 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-13 10:01:20 +0200 |
| commit | c1a8ea68cbdb31dba031c3567a1d7f0447b50bed (patch) | |
| tree | d26d36a74edd545d68a93b658c797e96cd41ecde | |
| parent | 6275dfd062ca4c519b908ed56feb219879116265 (diff) | |
Fix typo in svg export (#2124)
| -rw-r--r-- | crates/typst/src/export/svg.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/typst/src/export/svg.rs b/crates/typst/src/export/svg.rs index 7d67274c..186f9726 100644 --- a/crates/typst/src/export/svg.rs +++ b/crates/typst/src/export/svg.rs @@ -316,18 +316,18 @@ impl SVGRenderer { }, ); self.xml.write_attribute( - "stoke-linejoin", + "stroke-linejoin", match stroke.line_join { LineJoin::Miter => "miter", LineJoin::Round => "round", LineJoin::Bevel => "bevel", }, ); - self.xml.write_attribute("stoke-miterlimit", &stroke.miter_limit.0); + self.xml.write_attribute("stroke-miterlimit", &stroke.miter_limit.0); if let Some(pattern) = &stroke.dash_pattern { - self.xml.write_attribute("stoken-dashoffset", &pattern.phase.to_pt()); + self.xml.write_attribute("stroke-dashoffset", &pattern.phase.to_pt()); self.xml.write_attribute( - "stoken-dasharray", + "stroke-dasharray", &pattern .array .iter() |
