saltstack/salt — pull request #918 by SEJeff (2012-03-16 03:40:42+00:00)
Title: Strip the trailing newline / whitespace from cmd.*

This was the most frequent problem we ran into whenever
a user would try something like: __salt__['cmd.run']('foo')
inside of a state file or template. Lets ease their frustration

There is no way to selectively disable this in the various cmd
module commands, but that can easily be added later on if it is
ever deemend necessary.