diff options
author | Nick White <git@njw.name> | 2021-07-23 16:17:40 +0100 |
---|---|---|
committer | Nick White <git@njw.name> | 2021-07-23 16:17:40 +0100 |
commit | b571f780dcc4baafa659bebbc316204a46e42f4f (patch) | |
tree | b892958a63fd95b63b5f0e3591fabb53a272a537 /cmd/eeboxmltohocr | |
parent | 80a68210b4332e2d83e6b3e48a9ac94218d59f8b (diff) |
gofmt
Diffstat (limited to 'cmd/eeboxmltohocr')
-rw-r--r-- | cmd/eeboxmltohocr/main.go | 6 |
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) } |