diff --git a/src/render/svg.rs b/src/render/svg.rs index a1b3332..732cb4b 100644 --- a/src/render/svg.rs +++ b/src/render/svg.rs @@ -51,7 +51,7 @@ impl<'a> RenderCanvas for Canvas<'a> { r#""#, - r#""#, + r#""#, r#" RenderCanvas for Canvas<'a> { } fn draw_dark_rect(&mut self, left: u32, top: u32, width: u32, height: u32) { - write!(self.svg, "M{left} {top}h{width}v{height}H{left}V{top}").unwrap(); + write!(self.svg, "M{left} {top}h{width}v{height}h-{width}z").unwrap(); } fn into_image(mut self) -> String { diff --git a/src/test_annex_i_micro_qr_as_svg.svg b/src/test_annex_i_micro_qr_as_svg.svg index d855689..04d7037 100644 --- a/src/test_annex_i_micro_qr_as_svg.svg +++ b/src/test_annex_i_micro_qr_as_svg.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/test_annex_i_qr_as_svg.svg b/src/test_annex_i_qr_as_svg.svg index b536763..c959849 100644 --- a/src/test_annex_i_qr_as_svg.svg +++ b/src/test_annex_i_qr_as_svg.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file