# First paragraph in environment without indent or space

I'm trying to create an environment that does not indent the very first paragraph of the text inside the environment.

My latest attempt and the corresponding output are shown below. As you can see, the first environment added some small horizontal space to the first non-indented paragraph. The second environment did not, but I could only achieve this by adding a % character after \begin{env}, which should not be needed. How can I omit this unwanted space without an explicit % character?

\documentclass{minimal}

\newenvironment{env}{%
\noindent%
}{%
}%

\begin{document}
Some text. Some text. Some text. Some text. Some text. Some text.
Some text. Some text. Some text. Some text. Some text. Some text.
Some text. Some text. Some text. Some text. Some text. Some text.

\begin{env}
First paragraph inside environment.

Second paragraph inside environment.
\end{env}

\begin{env}%
First paragraph inside environment.

Second paragraph inside environment.
\end{env}
\end{document}

-

You can use ignorespaces

\documentclass{article}

\newenvironment{env}{%
\noindent\ignorespaces%
}{%
}%

\begin{document}
Some text. Some text. Some text. Some text. Some text. Some text.
Some text. Some text. Some text. Some text. Some text. Some text.
Some text. Some text. Some text. Some text. Some text. Some text.

\begin{env}
First paragraph inside environment.

Second paragraph inside environment.
\end{env}

\begin{env}%
First paragraph inside environment.

Second paragraph inside environment.
\end{env}
\end{document}


-
Thank you very much. That was exactly, what I needed. – leviathan Mar 15 '14 at 14:24
I'd add \par before \noindent. Why is the space (precisely the end-of-line after \begin{env}) not ignored? Because \noindent starts paragraph mode. – egreg Mar 15 '14 at 14:42