Action framework dependency injection, small bug fix to remove unneeded newlines from documents rendered by the DocumentRenderer