diff --git a/kraken/templates/alto b/kraken/templates/alto index b3ab3fc4b..ceed78733 100644 --- a/kraken/templates/alto +++ b/kraken/templates/alto @@ -107,7 +107,7 @@ {% if loop.previtem and loop.previtem.type == 'line' %} {% endif %} - + diff --git a/kraken/templates/hocr b/kraken/templates/hocr index 110632f37..81b31c480 100644 --- a/kraken/templates/hocr +++ b/kraken/templates/hocr @@ -1,5 +1,5 @@ {% macro render_line(line) -%} - + {% for segment in line.recognition %} {{ segment.text }} {% endfor -%} @@ -20,7 +20,7 @@
{% for entity in page.entities -%} {% if entity.type == "region" -%} -
+
{% for line in entity.lines -%} {{ render_line(line) }} {% endfor %}