]> 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 423e22ceb3f2522f25798b905758415531f68d0b..1077aaedad6f778e6943dd04efd32ec0ae3e9d22 100644 (file)
--- a/out.c
+++ b/out.c
@@ -1,4 +1,4 @@
-/*     $Id: out.c,v 1.18 2010/07/18 22:55:06 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,8 +218,14 @@ a2roffdeco(enum roffdeco *d, const char **word, size_t *sz)
                        break;
                }
                break;
+       case ('M'):
+               /* FALLTHROUGH */
+       case ('m'):
+               /* FALLTHROUGH */
        case ('*'):
-               *d = DECO_RESERVED;
+               if ('*' == c)
+                       *d = DECO_RESERVED;
+
                switch (wp[i++]) {
                case ('('):
                        lim = 2;