timkay / aws

Easy command line access to Amazon EC2, S3, SQS, ELB, and SDB
http://timkay.com/aws/
424 stars 123 forks source link

xml2yaml: fix a problem with trailing spaces #105

Closed icy closed 8 years ago

icy commented 8 years ago

The trailing spaces from the input should be removed; otherwise, it will break the YAML output (invalid syntax issue).

Trailing spaces exist when users enter them in tag, name, ... fields. Removing them means the original value and the result value are different. There is no easy way to get rid of this problem!