summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorNick White <git@njw.name>2021-03-23 13:04:13 +0000
committerNick White <git@njw.name>2021-03-23 13:04:13 +0000
commitb01b9176c72832cc08aed52422302230fce5e6cb (patch)
tree8cd0499aa404b8b4703ddf29054178c43e5d87c2 /cmd
parentfa4f48ad54ec94c222269d335d40b21becff92a4 (diff)
extracthocrlines: Skip empty text lines
Diffstat (limited to 'cmd')
-rw-r--r--cmd/extracthocrlines/main.go3
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)