add dedent processing at eof