]> git.cameronkatri.com Git - mandoc.git/blobdiff - out.c
Note discarding of \m, \M, and \s in COMPATIBILITY sections.
[mandoc.git] / out.c
diff --git a/out.c b/out.c
index 9e50628aed5e598fe7fbf3059a8951e52fd9ad4b..1077aaedad6f778e6943dd04efd32ec0ae3e9d22 100644 (file)
--- a/out.c
+++ b/out.c
@@ -1,4 +1,4 @@
-/*     $Id: out.c,v 1.19 2010/07/18 23:06:18 kristaps Exp $ */
+/*     $Id: out.c,v 1.20 2010/07/19 07:53:40 kristaps Exp $ */
 /*
  * Copyright (c) 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
  *
@@ -218,24 +218,14 @@ a2roffdeco(enum roffdeco *d, const char **word, size_t *sz)
                        break;
                }
                break;
-       case ('*'):
-               *d = DECO_RESERVED;
-               switch (wp[i++]) {
-               case ('('):
-                       lim = 2;
-                       break;
-               case ('['):
-                       term = ']';
-                       break;
-               default:
-                       i--;
-                       lim = 1;
-                       break;
-               }
-               break;
        case ('M'):
                /* FALLTHROUGH */
        case ('m'):
+               /* FALLTHROUGH */
+       case ('*'):
+               if ('*' == c)
+                       *d = DECO_RESERVED;
+
                switch (wp[i++]) {
                case ('('):
                        lim = 2;