{# A copy of the govuk-frontend-jinja tabs macro, with calls to `indent()` removed. The calls to `indent()` would mutate the value of a textarea if it was placed inside a tab, leading to the textarea value having spaces at the start of each line of a multiline input. Issue: https://github.com/LandRegistry/govuk-frontend-jinja/issues/100 #} {% macro govukTabs(params) %} {% from "govuk_frontend_jinja/macros/attributes.html" import govukAttributes %} {% macro _tabListItem(params, item, index) %} {% set tabPanelId = item.id if item.id else idPrefix ~ "-" ~ index %}
{{ item.panel.text }}
{% endif %}