Added preserve whitespace functionality for code snippet sample.
Removed unnecessary whitespace.