X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/a3dd505d1797e21daabbbddcb9843e8c0682ab5e..9b2bf0d0eb8141a888f66e3cb47ab6c62f63ad0c:/mdoc_term.c diff --git a/mdoc_term.c b/mdoc_term.c index 41bdf128..0755b164 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -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 * Copyright (c) 2010 Ingo Schwarze @@ -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);