Merge patch series "api: Remove duplicate newlines"

This removes a number of duplicate newlines throughout the codebase.