mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-06 05:53:08 -05:00
fmt: format the print and save script changes
This commit is contained in:
1 parent
c6b5899534
commit
9fb8974575
3 files changed
+7
-15
No files matched your search
@@ -103,11 +103,7 @@ fn script_file_commands_refuse_non_utf8_resolved_paths() {
|
||||
std::os::unix::fs::symlink(&target, &link).unwrap();
|
||||
let lossy = PathBuf::from(target.to_string_lossy().into_owned());
|
||||
std::fs::write(&lossy, &bytes).unwrap();
|
||||
for call in [
|
||||
"app.activeDocument.saveAs(f);",
|
||||
"app.activeDocument.exportFile(f, ExportType.SVG);",
|
||||
"app.open(f);",
|
||||
] {
|
||||
for call in ["app.activeDocument.saveAs(f);", "app.activeDocument.exportFile(f, ExportType.SVG);", "app.open(f);"] {
|
||||
let alias = if call.contains("exportFile") {
|
||||
let alias = dir.join("alias.svg");
|
||||
std::os::unix::fs::symlink(&target, &alias).unwrap();
|
||||
|
||||
Reference in new issue
Block a user