Injects display class dependency
Formats and removes whitespace