Fixed indenting for multiple blocks.

Implemented string splitting with a list comprehension and list flattening with itertools to break out lines of html to apply proper indentation to each line.