I'm trying to get familiar with the `witharrows` package, but i repeadtedly encounter unwanted vertical spacings produced by the `DispWithArrow` environment.

Example 1
=========

```
\documentclass[varwidth]{standalone}
\usepackage{witharrows}
\usepackage{lipsum}
\begin{document}

\lipsum[1][1-10]
\begin{DispWithArrows}
    x &= (a + b)^2 \Arrow{expand}\\
    x &= a^2 + 2ab + b^2
\end{DispWithArrows}
\lipsum[1][1-10]

\end{document}

```

Example 1 produces a document with extra vertical spacings between the lines of the first paragraph.

### Output of Example 1

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

Example 2
=========

```
\documentclass[varwidth]{standalone}
\usepackage{witharrows}
\usepackage{lipsum}
\begin{document}

\lipsum[1][1-5]\par
\begin{DispWithArrows}
    x &= (a + b)^2 \Arrow{expand}\\
    x &= a^2 + 2ab + b^2
\end{DispWithArrows}
\lipsum[1][1-4]

\end{document}

```

My first thought was that there is a missing `\par` in example 1. Unfortunately terminating the line before the beginning of `DisplayWithArrows` with `\par` leads me to a new problem.

Although the additional vertical line spacing in the first paragraph is not shown in the compiled document anylonger, a new unwanted vertical spacing appears between the paragraph and the first line of the equation.

### Output of Example 2

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

Workaround
==========

```
\documentclass[varwidth]{standalone}
\usepackage{witharrows}
\usepackage{lipsum}
\begin{document}

\lipsum[1][1-5]\par\vskip -\baselineskip
\begin{DispWithArrows}
    x &= (a + b)^2 \Arrow{expand}\\
    x &= a^2 + 2ab + b^2
\end{DispWithArrows}
\lipsum[1][1-4]

\end{document}

```

As a workaround i found that the extra vertical spacing is eliminated if i apply `\vskip -\baselineskip` after `\par`:

### Output of Workaround

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

Objectives
----------

It would be great to know if anybody can reproduce the output of my examples and if there is a better way to solve the problem with regard to my workaround.