Add support for trimming and compacting text to help indent inside components.
To use this feature you must opt-in by adding an attribute to the template-tag
of a component (that's the only place where it is supported). See the test in
this CL for an example.

Review URL: https://chromiumcodereview.appspot.com//12207182