Skip to content

“Caps” filter does not respect consecutive abbreviations #47

@andreyshipilov

Description

@andreyshipilov

How to reproduce using Django:

Django View

def view(request):
    context = {'text': 'Text with ABBREV IATURE.'}
    return render(request, 'template.html', context)

Django Template

{% load typogrify_tags %}
{{ text|typogrify }}

Output

Text with <span class="caps">ABBREV</span><span class="caps">IATURE</span>.

Expected output

Text with <span class="caps">ABBREV</span> <span class="caps">IATURE</span>.

Notice the space between span tags in the expected output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions