X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/a2a31a5d46c651d36ee2be58fa31588fca4840bd..3934b7ee2c441fc30d64e401facd0e798fe4978f:/doc/sod.sty

diff --git a/doc/sod.sty b/doc/sod.sty
index 81e51d5..eacd977 100644
--- a/doc/sod.sty
+++ b/doc/sod.sty
@@ -582,9 +582,9 @@
   \begingroup%
     \let\protect\@empty\def\@uscore{-\@gobble}%
     \edef\temp@{\@desc@dispatch{desclabel}{#5}{#4}{#5}#6{#7}}%
-    \hyperref[\temp@]{\code{#7}}#8%
-    #1#2{\temp@}#3%
-  \endgroup%
+    \edef\next@##1##2##3{\endgroup%
+      \noexpand\hyperref[\temp@]{##1}##2{\temp@}##3}%
+  \next@{\code{#7}}{#8#1#2}{#3}%
 }
 
 %% \descindex[MOD]{CAT}{...}...{LABEL}[SUFFIX]
