Skip to content

Commit

Permalink
svg namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
tyt2y3 committed Nov 1, 2020
1 parent 5efd479 commit 3df69f6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmdapp/src/svg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ impl SvgFile {

pub fn to_svg_file(&self) -> String {
let mut result: Vec<String> = vec![format!(r#"<?xml version="1.0" encoding="UTF-8"?>
<svg width="{}" height="{}">
"#, self.width, self.height)];
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="{}" height="{}">"#, self.width, self.height)];

for patch in &self.patches {
let color = patch.color;
Expand Down

0 comments on commit 3df69f6

Please sign in to comment.