Automatically calculate width of indent