Fixed FormatMiddleware documentation. Fixes #971.