Consecutive footnotes can be separated by commas by invocation of the `multiple` option of the [`footmisc`](http://www.ctan.org/pkg/footmisc) package:

![enter image description here](https://i.stack.imgur.com/NeXTR.png)

```
\documentclass{article}
\usepackage[multiple]{footmisc}
\begin{document}
Comma delineation of consecutive footnotes fails upon conversion to endnotes%
\footnote{First note.}%
\footnote{Second note.}.%
\end{document}

```

This comma delineation fails, however, if footnotes are converted to endnotes using the [`endnotes`](http://www.ctan.org/pkg/endnotes) package:

![enter image description here](https://i.stack.imgur.com/sqHMs.png)

```
\documentclass{article}
\usepackage{endnotes}
\let\footnote=\endnote
\usepackage[multiple]{footmisc}
\begin{document}
Comma delineation of consecutive footnotes fails upon conversion to endnotes%
\footnote{First note.}%
\footnote{Second note.}.%
\theendnotes
\end{document}

```

How can one preserve automated comma delineation of consecutive endnotes?