Fix spacing and line breaking issues in code samples

Change-Id: I8285d874460b0d7fbf19bc69c80d8f3c06c4c591