mirror of
https://github.com/storytold/designcraft.git
synced 2026-10-29 12:46:53 -06:00
Integration: cargo fmt
This commit is contained in:
@@ -273,7 +273,9 @@ impl Export {
|
||||
Some("html" | "htm") => Export::Command("file.exportHtml"),
|
||||
// The story being edited or of the selected frame.
|
||||
Some("rtf" | "txt") => Export::Command("file.exportText"),
|
||||
Some(_) => return Err(format!("--export {out}: unknown file type (.png, .jpg, .pdf, .designcraft, .idml, .epub, .pptx, .html, .rtf, .txt)")),
|
||||
Some(_) => {
|
||||
return Err(format!("--export {out}: unknown file type (.png, .jpg, .pdf, .designcraft, .idml, .epub, .pptx, .html, .rtf, .txt)"));
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1982,9 +1982,9 @@ mod tests {
|
||||
assert_eq!(css_weight_style("Bold"), (700, "normal"));
|
||||
assert_eq!(css_weight_style("Extra Bold"), (800, "normal"));
|
||||
assert_eq!(css_weight_style("Regular"), (400, "normal"));
|
||||
assert_eq!(css_weight_style("Light"), (300, "normal"));
|
||||
assert_eq!(css_weight_style("Thin Oblique"), (100, "italic"));
|
||||
assert_eq!(css_weight_style("Black"), (900, "normal"));
|
||||
assert_eq!(css_weight_style("Light"), (300, "normal"));
|
||||
assert_eq!(css_weight_style("Thin Oblique"), (100, "italic"));
|
||||
assert_eq!(css_weight_style("Black"), (900, "normal"));
|
||||
|
||||
let mut d = Document::new(&NewDocument::default());
|
||||
let lid = d.default_layer();
|
||||
|
||||
Reference in New Issue
Block a user