X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/95346c389d6343009410e4d5541eb03d3f1fef59..756f4928a8846058be6b0a26475851a5d6fece84:/doc/sod.sty

diff --git a/doc/sod.sty b/doc/sod.sty
index 56fc726..d954b89 100644
--- a/doc/sod.sty
+++ b/doc/sod.sty
@@ -176,7 +176,8 @@
   \if@dheadfirst\global\@dheadfirstfalse\else\relax\\[\smallskipamount]\fi%
   {\let\protect\@empty\def\@uscore{_\@gobble}\message{#2:#1}%
    \def\@uscore{-\@gobble}\edef\@tempa{\noexpand\label{#2:#1}}\@tempa}%
-  \rlap{\rightline{\normalfont\bfseries[\describecategoryname{#2}]}}%
+  \rlap{\hb@xt@\linewidth{\hfil\normalfont\bfseries
+      [\describecategoryname{#2}]}}%
   #3%
 }
 
