fix align buglet

depth was not used
dont write new indent if it was the same as before