]> git.cameronkatri.com Git - mandoc.git/blobdiff - mdoc_term.c
Remove \s TODO: these are intelligently ignored along with \m and \M.
[mandoc.git] / mdoc_term.c
index 41bdf128247fa85d61fd5d44940510e8ae72ed28..0755b1649103af8bbe17eadafb876e1e72edf7a1 100644 (file)
@@ -1,4 +1,4 @@
-/*     $Id: mdoc_term.c,v 1.172 2010/07/06 10:54:05 kristaps Exp $ */
+/*     $Id: mdoc_term.c,v 1.174 2010/07/16 00:03:37 schwarze Exp $ */
 /*
  * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org>
@@ -31,7 +31,6 @@
 #include "mandoc.h"
 #include "out.h"
 #include "term.h"
-#include "regs.h"
 #include "mdoc.h"
 #include "chars.h"
 #include "main.h"
@@ -2067,9 +2066,11 @@ termp_sm_pre(DECL_ARGS)
 {
 
        assert(n->child && MDOC_TEXT == n->child->type);
-       if (0 == strcmp("on", n->child->string))
+       if (0 == strcmp("on", n->child->string)) {
+               if (p->col)
+                       p->flags &= ~TERMP_NOSPACE;
                p->flags &= ~TERMP_NONOSPACE;
-       else
+       else
                p->flags |= TERMP_NONOSPACE;
 
        return(0);