I'm trying to draw a vertical box around one or more lines of text (for a field in a pre-filled form), but some of the fields may be empty and in these cases, the box should be the same vertical height as when there is only one line (or even just one character) of content within the box.
I am currently defining a \field command for this, like so:
\newcommand{\field}[1]{
\framebox[\textwidth][l]{
\parbox[l]{0.96\textwidth}{
\raggedright #1 \addvspace{0.1\baselineskip}
}
}
}
But this gives me a 'missing item' error because \addvspace isn't in vertical mode. If I add a \par to fix this, the box has too much vertical padding after the last line of text. If I remove the \addvspace entirely then the box is not tall enough when it contains no text.
Could someone please suggest the best way of creating a box, the full width of the page, that is a minimum of one line of text high (even when empty) but can expand to contain multiple lines of text?

enumitemto embed a list asBut I still get a top vertical spacing. Is it because of something I didn't understand in the
– Vser Jul 28 '16 at 13:19fieldenvironment?\strut. What will it break to remove it? – Vser Jul 28 '16 at 13:26if/elseclause with thestrutonly if there is no list given. – Vser Jul 28 '16 at 13:30