liuyuqi-dellpc 10 months ago
parent
commit
c97362e5e3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      convert.go

+ 2 - 2
convert.go

@@ -13,6 +13,6 @@ func doCommand(cmd string) {
 func main() {
 	// if diretory not exist, create it
 	doCommand("mkdir -p output")
-	doCommand("libreoffice --headless --convert-to "html:XHTML Writer File:UTF8" *.doc --outdir output")
-	doCommand("libreoffice --headless --convert-to "html:XHTML Writer File:UTF8" *.docx --outdir output")
+	doCommand("libreoffice --headless --convert-to \"html:XHTML Writer File:UTF8\" *.doc --outdir output")
+	doCommand("libreoffice --headless --convert-to \"html:XHTML Writer File:UTF8\" *.docx --outdir output")
 }