Q: xgalley breaks spacing around lists I would like to use xgalley as a more flexible and manual way of wrapping text around figures compared to the standard packages like wrapfig. However, simply loading the package creates problems with the vertical spacing of list constructions like the one below. I assume that further testing will yield more problems in different situations. Can ths be fixed, or is xgalley simply too experimental to be used within LaTeX2e at all?
\documentclass{article}

\usepackage{xgalley,lipsum}

\begin{document}

\lipsum

\begin{itemize}
\item\lipsum
\end{itemize}

\end{document}



A: As l3galley alters how everything works in adding to vertical lists, breakages are unfortunately going to occur with a lot of code. Here, the issue is that \@item does two runs of \addvspace next to one another, whereas the current set up in l3galley works on the basis that \addvspace is used to add a single 'user' adjustment. (This may have to be revisited.) Fixing it at present is trivial, luckily: 
\documentclass{article}

\usepackage{lipsum}
\usepackage{xgalley}
\usepackage{etoolbox}
\makeatletter
\patchcmd\@item
  {\addvspace\@topsep\addvspace{-\parskip}}
  {\addvspace{\@topsep - \parskip}}
  {}{}
\makeatother

\begin{document}

\lipsum

\begin{itemize}
\item\lipsum
\end{itemize}

\end{document}

which works as the l3galley version of \addvspace takes an expression not a single dimension as its argument.
Note that the rest of the itemize environment also needs adjustment to allow all of the galley code to work.
