added indentation support for Documents