improved automatic indention on enter