Fixed issue where whitespace was getting added to the end of lines in code blocks