add indent function when export as html