Skip to content
Myr

fixed error in wordwrap filter

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk

authored by Benjamin Wiegand · committed by Benjamin Wiegand · parent 58f351d · Browse files · 1 file+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:jinja2/filters.py+3 added-3 removed
364 unmodified lines
365 ``79`` characters. You can override this default using the first366 parameter. If you set the second parameter to `false` Jinja will not367 split words apart if they are longer than `width`.368 """369 return textwrap.wrap(s, width=width, expand_tabs=False,370 replace_whitespace=False,371 break_long_words=break_long_words)369 return u'\n'.join(textwrap.wrap(s, width=width, expand_tabs=False,370 replace_whitespace=False,371 break_long_words=break_long_words))372373374def do_wordcount(s):375 """Count the words in that string."""
316 unmodified lines