|
The indent is fine and the end </pre> must appear on its own line not indented otherwise you change the contents of the pre tag.
So the only real issue is not trimming the previous_text to the pre tag which results in more whitespace, none of which will impact what is displayed in Preview. It is that it is growing with each run. I think that can be easily taken care of.
So just for the record DNSB and BeckyEbook what other issues are you seeing? If there are other things that can not easily be taken care of, then I agree discarding PrettyPrinter is probably for the best.
|