diff --git a/typogrify/filters.py b/typogrify/filters.py index 269aca0..862997e 100644 --- a/typogrify/filters.py +++ b/typogrify/filters.py @@ -11,8 +11,8 @@ def process_ignores(text, ignore_tags=None): can also be filtered on id and class using CSS notation. For example, div#test (div with id='test'), div.test (div with class='test'), #test (any tag with id='test') - or .test (any tag with class='test'). - + or .test (any tag with class='test'). + Returns in the following format: [ @@ -54,9 +54,9 @@ def _filter_tag(match): {attribute} \s*=\s* (['"]) {attribute_value} \{0} ))""".format(_filter_tag.group, **locals()) - + return result - + _filter_tag.group = 1 position = 0 sections = [] @@ -281,7 +281,7 @@ def smartypants(text): def widont(text): - """Replaces the space between the last two words in a string with `` `` + r"""Replaces the space between the last two words in a string with `` `` Works in these block tags ``(h1-h6, p, li, dd, dt)`` and also accounts for potential closing inline elements ``a, em, strong, span, b, i`` @@ -319,11 +319,15 @@ def widont(text): >>> widont('
But divs with paragraphs do!
But divs with paragraphs do!