Jump to >

djblets.util.templatetags.djblets_email

E-mail formatting template tags.

quoted_email(context, template_name)[source]

Renders a specified template as a quoted reply, using the current context.

condense(context, nodelist, max_newlines=3)[source]

Condenses a block of text.

This will ensure that there are never more than the given number of consecutive newlines. It’s particularly useful when formatting plain text output, to avoid issues with template tags adding unwanted newlines.

quote_text(text, level=1)[source]

Quotes a block of text the specified number of times.