]> git.cameronkatri.com Git - mandoc.git/blobdiff - man_term.c
Further apropos(1) speed optimization was trickier than anticipated.
[mandoc.git] / man_term.c
index 34448561443efdc6e1ff5cadfec9b944bd0476e0..5a659503e3876c9813e7e0e2f28d205b7893e63c 100644 (file)
@@ -1,4 +1,4 @@
-/*     $Id: man_term.c,v 1.144 2014/03/30 21:28:01 schwarze Exp $ */
+/*     $Id: man_term.c,v 1.145 2014/04/08 07:13:11 schwarze Exp $ */
 /*
  * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -278,7 +278,7 @@ pre_literal(DECL_ARGS)
                p->offset = p->rmargin;
                p->rmargin = p->maxrmargin;
                p->trailspace = 0;
-               p->flags &= ~TERMP_NOBREAK;
+               p->flags &= ~(TERMP_NOBREAK | TERMP_BRIND);
                p->flags |= TERMP_NOSPACE;
        }
 
@@ -547,7 +547,7 @@ pre_HP(DECL_ARGS)
        }
 
        if ( ! (MANT_LITERAL & mt->fl)) {
-               p->flags |= TERMP_NOBREAK;
+               p->flags |= TERMP_NOBREAK | TERMP_BRIND;
                p->trailspace = 2;
        }
 
@@ -582,7 +582,7 @@ post_HP(DECL_ARGS)
        switch (n->type) {
        case (MAN_BODY):
                term_newln(p);
-               p->flags &= ~TERMP_NOBREAK;
+               p->flags &= ~(TERMP_NOBREAK | TERMP_BRIND);
                p->trailspace = 0;
                p->offset = mt->offset;
                p->rmargin = p->maxrmargin;