Fixed some formatting issues for multi-config injections.
Merged inject_formatting