|
I hate it. I understand what you are doing, but your solution puts the beauty of the output above the beauty of the source and what we should have is the opposite. The templace code looks broken, created by a sloppy programmer who didn't care about closing the tags properly. When I touch that code, my first reaction is to fix the braces and that is wrong. Why can't you just count the number of tabs till the first tag and use that as the base? This seems to work in 100% of the cases, but even if there is a case where this wouldn't work well, it is still better than what we have at this point.
|