Preserve line indentation in HTML file while rebuilding it