% This file is embedded in glossaries-extra-manual.pdf
% Example 116 Buffering first use unsets with \mbox
% arara: pdflatex
% arara: pdfcrop
\documentclass[12pt]{article}
\pagestyle{empty}
\usepackage[T1]{fontenc}
\usepackage{soul}
\usepackage{glossaries-extra}


\newabbreviation{html}{HTML}{hypertext markup language} 
\begin{document}
\GlsXtrStartUnsetBuffering
\ul{Some text about \mbox{\gls{html}}.
Next use: \mbox{\gls{html}}.}
\GlsXtrStopUnsetBuffering


Next use: \gls{html}. 
\end{document}
