diff --git a/kraken/blla.py b/kraken/blla.py index 9c9054af4..d04682ef1 100644 --- a/kraken/blla.py +++ b/kraken/blla.py @@ -286,7 +286,7 @@ def segment(im: PIL.Image.Image, :force: 'lines': [ - {'baseline': [[x0, y0], [x1, y1], ..., [x_n, y_n]], 'boundary': [[x0, y0, x1, y1], ... [x_m, y_m]]}, + {'baseline': [[x0, y0], [x1, y1], ..., [x_n, y_n]], 'boundary': [[x0, y0], [x1, y1], ... [x_m, y_m]]}, {'baseline': [[x0, ...]], 'boundary': [[x0, ...]]} ] 'regions': [ diff --git a/kraken/containers.py b/kraken/containers.py index d9c5f3880..fdd9fd283 100644 --- a/kraken/containers.py +++ b/kraken/containers.py @@ -48,7 +48,7 @@ class ProcessingStep: Attributes: id: Unique identifier - category: Category of processing step that has been performat. + category: Category of processing step that has been performed. description: Natural-language description of the process. settings: Dict describing the parameters of the processing step. """ diff --git a/kraken/templates/alto b/kraken/templates/alto index dd560ddf1..9d648b1e9 100644 --- a/kraken/templates/alto +++ b/kraken/templates/alto @@ -80,7 +80,7 @@ {% if page.line_orders|length() > 0 %} - {% if len(page.line_orders) == 1 %} + {% if page.line_orders | length == 1 %} {% for id in page.line_orders[0] %}