in reply to Properly indented using HTML::Tiny

but it doesn't seem to do proper indenting

Good. I'd be annoyed if it added format-changing spaces such as the one you describe. I hate to see links that protrude and cells that are extended, so I wouldn't want my HTML generator to produce the errors you desire.

That goes to explain why it doesn't indent by default. I don't know if it has an option to do it on request.