Tweaked recursive formatting to remove extra array markers