move spacer code into format()