mintchaos / typogrify

A set of Django template filters to make caring about typography on the web a bit easier.
http://static.mintchaos.com/projects/typogrify/
Other
168 stars 29 forks source link

The caps filter fails a doctest #22

Closed Kwpolska closed 10 years ago

Kwpolska commented 10 years ago
[kwpolska@kw-cassandra typogrify Gfix-18]% python -m doctest typogrify/filters.py
**********************************************************************
File "typogrify/filters.py", line 106, in filters.caps
Failed example:
    caps("<PRE>CAPS</pre> more CAPS")
Expected:
    '<PRE>CAPS</pre> more <span class="caps">CAPS</span>'
Got:
    '<PRE><span class="caps">CAPS</span></pre> more <span class="caps">CAPS</span>'
**********************************************************************
1 items had failures:
   1 of   6 in filters.caps
***Test Failed*** 1 failures.
barrysteyn commented 10 years ago

This issue has been fixed (I included the fix when I created the pull request for #28). This issue can be closed now.