(libs) Syntax: delete trailing spaces, add newline at EOF