Add whitespace stripping to the {% attr %} template tag.

Review Request #9051 — Created July 4, 2017 and submitted

chipx86
Djblets
release-0.10.x
1128fc6...
djblets

The {% attr %} template tag now strips whitespace at the beginning and
end of the value. It used to do this when considering the contents, but
then preserved the whitespace when injecting it into the value. Since
it's unlikely callers (which tend to use this for CSS class names) want
to retain leading/trailing whitespace for rendered values, the
whitespace is no longer preserved.

Unit tests pass.

brennie
  1. Ship It!
  2. 
      
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-0.10.x (9a69da5)
Loading...