fixed indent printing problem when no HTML