Multiple consecutive \par's equivalent to just one?

I think the answer to this question should be positive but I just couldn’t find it answered elsewhere: Are multiple consecutive \par‘s the same as a single \par? For example, is \par\par the same as just \par?

More generally, since an empty line is equivalent to a \par: Is any finite sequence of consecutive \par‘s and empty lines (or any mixture of them) equivalent to a single \par (or a single empty line)?

I know this question might seem trivial, but I do want to know it for defining macros. Any help appreciated!

Solutions Collecting From Web of "Multiple consecutive \par's equivalent to just one?"

After \par, TeX is in vertical mode. Then page 283 of the TeXbook, second bullet, explains that

The primitive \par command has no effect when TeX is in vertical mode,
except that the page builder is exercised in case something is present
on the contribution list, and the paragraph shape parameters are cleared.

“Exercising the page builder” is explained on page 281:

TeX periodically takes material that has been put on the main vertical list and moves it from the “contribution list” to the “current page.” At such times the output routine might be invoked. We shall say that TeX exercises the page builder whenever it tries to empty the current contribution list. The concept of contribution list exists only in the outermost vertical mode, so nothing happens when TeX exercises the page builder in internal vertical mode.

The paragraph shape parameters are any value given to \parshape, \hangindent or \hangafter.

So no, you don’t have to worry much about having consecutive \par tokens unless you have redefined \par. Two consecutive blank lines count for two \par tokens, as the following Plain TeX example shows:

\def\par{X\endgraf}
a


b
\bye

that produces

enter image description here

The quoted text (in egreg’s answer) is about the tex primitive, but a blank line really is a \par token which can be redefined at any time (and is quite often redefined in latex). So whether consecutive \par are equivalent to one depends on the definition. At the start of any list (or list defined environment such as center) for example you can have 1 or 2 or 1000 \par but don’t push your luck further than that:

\documentclass{article}

\begin{document}

\def\cpar{\par\par\par\par\par\par\par\par\par\par
\par\par\par\par\par\par\par\par\par\par
\par\par\par\par\par\par\par\par\par\par
\par\par\par\par\par\par\par\par\par\par
\par\par\par\par\par\par\par\par\par\par
\par\par\par\par\par\par\par\par\par\par
\par\par\par\par\par\par\par\par\par\par
\par\par\par\par\par\par\par\par\par\par
\par\par\par\par\par\par\par\par\par\par
\par\par\par\par\par\par\par\par\par\par}

\begin{center}
\par
\end{center}

\begin{center}
\cpar\cpar\cpar\cpar\cpar\cpar\cpar\cpar\cpar\cpar
\end{center}

\begin{center}
\cpar\cpar\cpar\cpar\cpar\cpar\cpar\cpar\cpar\cpar
\par% straw camel back....
\end{center}


\end{document}