How can I print the value of the node body using PHP with the text format applied? I am printing the node body using PHP on an admin view via a template; however, when I do this, the text comes out as one giant block (spacing is ignored).  However, when I go to edit the node, the content is spaced properly.

My code looks like this:

print "Body: " . $body[0]['value'];


What do I need to change to make sure the spacing/formatting is printed out properly?
I believe you're looking for the check_markup() function:

Runs all the enabled filters on a piece of text.
Note: Because filters can inject JavaScript or execute PHP code, security is vital here. When a user supplies a text format, you should validate it using filter_access() before accepting/using it. This is normally done in the validation stage of the Form API. You should for example never make a preview of content in a disallowed format.

E.g.
$markup = check_markup($body[0]['value'], $body[0]['format']);