summaryrefslogtreecommitdiff
path: root/cmd/eeboxmltohocr/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/eeboxmltohocr/main.go')
-rw-r--r--cmd/eeboxmltohocr/main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/eeboxmltohocr/main.go b/cmd/eeboxmltohocr/main.go
index 25c4204..5114678 100644
--- a/cmd/eeboxmltohocr/main.go
+++ b/cmd/eeboxmltohocr/main.go
@@ -51,7 +51,7 @@ func addPage(pgs *[]Page, number int, text string) {
if added == 0 {
newpg := Page{number, text}
*pgs = append(*pgs, newpg)
- }
+ }
}
func main() {
@@ -100,14 +100,14 @@ func main() {
}
for _, pg := range pgs {
- fn := fmt.Sprintf("%s-%03d.hocr", flag.Arg(1), pg.number - 1)
+ fn := fmt.Sprintf("%s-%03d.hocr", flag.Arg(1), pg.number-1)
f, err := os.Create(fn)
if err != nil {
log.Fatalf("Could not create file %s: %v\n", fn, err)
}
defer f.Close()
- _, err = io.WriteString(f, hocrHeader + pg.text + hocrFooter)
+ _, err = io.WriteString(f, hocrHeader+pg.text+hocrFooter)
if err != nil {
log.Fatalf("Could not write file %s: %v\n", fn, err)
}