diff options
author | Nick White <git@njw.name> | 2021-03-23 13:04:13 +0000 |
---|---|---|
committer | Nick White <git@njw.name> | 2021-03-23 13:04:13 +0000 |
commit | b01b9176c72832cc08aed52422302230fce5e6cb (patch) | |
tree | 8cd0499aa404b8b4703ddf29054178c43e5d87c2 /cmd | |
parent | fa4f48ad54ec94c222269d335d40b21becff92a4 (diff) |
extracthocrlines: Skip empty text lines
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/extracthocrlines/main.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/extracthocrlines/main.go b/cmd/extracthocrlines/main.go index fa5ef28..3fbafd0 100644 --- a/cmd/extracthocrlines/main.go +++ b/cmd/extracthocrlines/main.go @@ -89,6 +89,9 @@ func main() { if l.Img == nil { continue } + if l.Text == "" { + continue + } err = saveline(l, *dir) if err != nil { log.Fatal(err) |