Is there an easy way to break a rule over multiple lines? I.e. for it to continue flowing just as text would, and not continuing straight through the page border?
Specifically, I'm trying to typeset questions for a test.
Here's a MWE:
\documentclass[11pt]{article}
\usepackage{enumitem}
\usepackage[left=2cm,right=2cm,bottom=2cm,top=2cm]{geometry}
\usepackage[onehalfspacing]{setspace}
\begin{document}
\begin{enumerate}[label=(\arabic*)]
\item Ap sala kemae njeuqsket jquakmdk a kameiuwma ke eiqkamk jekamska keialk
oela \rule{6cm}{0.15mm}.
\end{enumerate}
\end{document}
What I'm getting is this:
What I'd like to get is something like 
but with the first part of the line stretching to the end of the text width, then breaking and continuing in the next line. (The "desired" output was done by typesetting the rule with two calls to the \rule command, with a manual line break, i.e. \\ between them.)



censorpackage's\xblackoutmacro breaks across lines, and can be set up as a "rule" in appearance with\censorruledepth=-.2exand\censorruleheight=.1ex– Steven B. Segletes May 02 '18 at 15:34\xblackout{aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa}with the options you've listed in the comment (and the other post), but have run into the same problem. So, the MWE is the same as before, but\ruleis replaced by\xblackoutas stated earlier, and the\censorrule...options are set. – Potato May 02 '18 at 15:48\underline{\phantom{text}}trick. Moreover, it appeared when using just\phantom{long-text}. Maybe it's because of the\enumerateenvironment? – Potato May 02 '18 at 15:53\xblackoutworks with text, and allows breaks between words, in the manner of\xblackout{This is the text I want blacked out}. In this sense, it may not be exactly what you want. – Steven B. Segletes May 02 '18 at 16:39\xblackoutfunction and it works as intended. Basically, I'm trying to keep the blank lines at about the same length, so I'll just use your package with some text "constant". That being said, I don't know how I haven't come across the topic you've linked. If you'd like to post your comment as an answer, I'll gladly accept it. Thank you! – Potato May 02 '18 at 16:50