{# Copyright (C) 2026 Front Matter. invenio-pidbox is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. A text with line breaks, as a person's biography or a container's description comes from the store, as paragraphs: one per line, without the empty ones. In a single

the browser runs the lines together. {% from "invenio_pidbox/paragraphs.html" import paragraphs %} {{ paragraphs(person.description) }} #} {%- macro paragraphs(text) -%} {%- for paragraph in (text or "").splitlines() if paragraph.strip() %}

{{ paragraph.strip() }}

{%- endfor %} {%- endmacro -%}