Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

“Caps” filter does not respect consecutive abbreviations #14

Open
andreyshipilov opened this issue Oct 27, 2016 · 0 comments
Open

Comments

@andreyshipilov
Copy link

andreyshipilov commented Oct 27, 2016

How to reproduce:

View

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

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.

@andreyshipilov andreyshipilov changed the title “Caps” filter does not respect consecutive abbreviation “Caps” filter does not respect consecutive abbreviations Oct 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant