]> git.cameronkatri.com Git - mandoc.git/blobdiff - term.c
1. Eliminate struct eqn, instead use the existing members
[mandoc.git] / term.c
diff --git a/term.c b/term.c
index 71fd73d5d81f8355a7d4b4449deb5afd08023015..595390b671b44eb8549fadb092d7d3c4214955a6 100644 (file)
--- a/term.c
+++ b/term.c
@@ -1,4 +1,4 @@
-/*     $Id: term.c,v 1.272 2017/06/14 18:23:37 schwarze Exp $ */
+/*     $Id: term.c,v 1.273 2017/06/14 23:24:18 schwarze Exp $ */
 /*
  * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2010-2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -526,9 +526,14 @@ term_word(struct termp *p, const char *word)
                                p->flags |= (TERMP_NOSPACE | TERMP_NONEWLINE);
                        continue;
                case ESCAPE_HORIZ:
+                       if (*seq == '|') {
+                               seq++;
+                               uc = -p->col;
+                       } else
+                               uc = 0;
                        if (a2roffsu(seq, &su, SCALE_EM) == NULL)
                                continue;
-                       uc = term_hen(p, &su);
+                       uc += term_hen(p, &su);
                        if (uc > 0)
                                while (uc-- > 0)
                                        bufferc(p, ASCII_NBRSP);