I have the same question as [Filling remainder of the page with dots](https://tex.stackexchange.com/questions/319430/filling-remainder-of-the-page-with-dots). That is, I want to fill the remainder of the page with dots. The accepted answer is almost perfect, but when I use it inside `\begin{enumeration}`, the dots are not indented properly. Is there a way to get it to work?

I found answers in other posts suggesting that `leavevmode` would help, but it doesn't appear to work wherever I add it.

Edited: here's the code that I have tried. I simply added `leavevmode` in front of `cleaders` on top of the aforementioned accepted answer.

```
% My standard header for TeX.SX answers:
\documentclass[a4paper]{article} % To avoid confusion, let us explicitly 
                                 % declare the paper format.

\usepackage[T1]{fontenc}         % Not always necessary, but recommended.
% End of standard header.  What follows pertains to the problem at hand.

\usepackage{lipsum}

\makeatletter

\newcommand*\dotcolumnfill{%
    \par
    \null
    \vskip -\ht\strutbox
    \xleaders \hb@xt@ \hsize {%
        \strut \leavevmode \cleaders \hb@xt@ .44em{\hss.\hss}\hfill
    }\vfill
    \vskip \ht\strutbox
    \break
}

\makeatother

\begin{document}

\begin{enumerate}
  \item \lipsum*[1]
  \dotcolumnfill
  \item \lipsum*[2]
\end{enumerate}

\end{document}

```

Here's the result:

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