Tweak comment

This commit is contained in:
rachidatecs 2023-08-03 10:26:41 -04:00
parent 22a89e030d
commit 916857a080
No known key found for this signature in database
GPG key ID: 3CEBBFA7325E5525

View file

@ -32,7 +32,7 @@ error messages, if necessary.
{% if sublabel_text %}
<p id="{{ widget.attrs.id }}__sublabel" class="text-base margin-top-2px margin-bottom-1">
{% comment %} If the link_text appears twice, the first instance will be a link and the second instance will be ignored {% endcomment %}
{% comment %} If the link_text appears more than once, the first instance will be a link and the other instances will be ignored {% endcomment %}
{% if link_text and link_text in sublabel_text %}
{% with link_index=sublabel_text|find_index:link_text %}
{{ sublabel_text|slice:link_index }}