Skip to content
Myr

PR for issue #615

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Humble Penguin · committed by David Peter · parent 42e85f2 · Browse files · 1 file+12 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+12 added−1 removed

  • other:+12 added−1 removed

1 file+12 added−1 removed

modified:src/export/mod.rs+12 added-1 removed
1use std::env;2use std::fs::{File, OpenOptions};3use std::io::Write;45mod asciidoc;
83 unmodified lines
89 ExportType::Json => Box::new(JsonExporter::default()),90 ExportType::Markdown => Box::new(MarkdownExporter::default()),91 ExportType::Orgmode => Box::new(OrgmodeExporter::default()),92 };9394 self.exporters.push(ExporterWithFilename {95 exporter,94 filename: filename.to_string(),96 filename:97 if filename == "-" {98 if env::consts::OS == "windows" {99 "con:".to_string()100 } else {101 "/dev/stdout".to_string()102 }103 } else {104 filename.to_string()105 },106 });107108 Ok(())109 }
17 unmodified lines