API: (bug 11719) Remove trailing blanks in YAML output.