converting the document to 4 spaces and fixing example in white-space