doc/sod.sty: Get `@--...' to typeset a sequence of dashes properly.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 5 Aug 2019 17:06:45 +0000 (18:06 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 5 Aug 2019 17:06:45 +0000 (18:06 +0100)
Now we can replace the explicit `--\,--' bodge.

doc/concepts.tex
doc/sod.sty

index 7e3c1c5..970b710 100644 (file)
@@ -1127,7 +1127,7 @@ counting system, as follows.
     [role = around]                                             \\
     int obj.teardown()                                          \\
     \{                                                          \\ \ind
-      if (--\,--me@->ref.nref) return (1);                      \\
+      if (@--me@->ref.nref) return (1);                           \\
       else return (CALL_NEXT_METHOD);                         \-\\
     \}                                                        \-\\
   \}
index 1cfc065..e88f2d5 100644 (file)
   \ifx\ch@>%
     --\raisebox{.4pt}{>}%
     \def\next@{\@firstoftwo{\egroup\penalty200\relax}}%
+  \else\ifx\ch@-%
+    --\,%
+    \def\next@{\@firstoftwo{\futurelet\ch@\@dash}}%
   \else%
     --%
     \let\next@\egroup%