Spaces in newenvironment

I observed an unwanted behavior of my self-made environment. The following code sometimes creates spaces after the environment head and sometimes doesn't. \documentclass[a4paper]{article} \usepac...