Fix view source failures in Internet Explorer.

Fix the below symptoms in Internet Explorer.

1. Displayed a different code when view source.
2. Lost a blank line when view source.