Пример #1
0
        public static string BuildArguments(string sourceFile, string targetFile, PandocTaskConfig config)
        {
            StringBuilder sb = new StringBuilder();

            sb.Append(string.Format("{0} -f {1} -t {3} -s -o {2}"
                        , sourceFile
                        , PandocFileExtension.Extensions[Path.GetExtension(sourceFile)]
                        , targetFile
                        , PandocFileExtension.Extensions[Path.GetExtension(targetFile)]
                        ));

            if (config.ParseRaw) sb.Append(" -R");
            if (config.Normalize) sb.Append(" --normalize");
            if (config.PreserveTabs) sb.Append(" -p");
            if (config.TabStop != 4) sb.Append(" --tab-stop=" + config.TabStop);

            return sb.ToString();
        }
Пример #2
0
 public PandocTask()
 {
     TargetFiles = new ObservableCollection<TargetFile>();
     Config = new PandocTaskConfig();
 }