I want to have nice tight lists with no spacing before, after or in-between the items. I managed to do this according to the answer from this question: How to remove the whitespace BEFORE itemize/enumerate?
\usepackage{enumitem}
\setlist{nosep}
This works fine when a list comes before and/or after a paragraph.
BUT: This doesn't work in a tabular environment. There is some extra vertical space before and after the list. Can somebody tell me why and more importantly how to fix it?
Thank you in advance for your help.
The problem can be reproduced using this code:
\documentclass{article}
\usepackage{enumitem}
\setlist{nosep,noitemsep }
\begin{document}
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea
\begin{itemize}
\item Item 1
\item Item 2
\end{itemize}
Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
\begin{table}[h]
\begin{tabular}{|p{1\textwidth}|}\hline
\begin{itemize}[itemparsep=0pt]
\item Item 1
\item Item 2
\end{itemize}\\
\hline
\end{tabular}
\end{table}
\end{document}