The following MWE shows the effect of a line-broken glossary entry on an adjacent marginpar, as opposed to a non-line-breaking glossary entry. Why does line-brokenness contaminate the marginpar?
\documentclass[a4paper]{memoir}
\usepackage[xetex]{hyperref}
\hypersetup{colorlinks=true}
\usepackage{glossaries}
\makeglossaries
\loadglsentries{glossary}
\begin{document}
Here\marginpar{Here is a margin paragraph.} is a reference to the glossary word \glsname{tst-a}, \\\
and here\marginpar{Here is another margin paragraph.} is a reference to the glossary word \glsname{tst-b},
\glsaddall
\printglossaries
\end{document}
My glossary entries are defined as follows:
\newglossaryentry{tst-a}{%
name={a-short-glsname},
description={Definition of tst}}
\newglossaryentry{tst-b}{%
name={a-very-long-glsname-likely-to-line-break},
description={Definition of tsp}}
