]> git.cameronkatri.com Git - mandoc.git/blobdiff - eqn.c
Implement the roff(7) .shift and .return requests,
[mandoc.git] / eqn.c
diff --git a/eqn.c b/eqn.c
index f371be5b9e53e3bdbc8193c97bbb828d81a1496c..01601a7137343a576964eccf402f2a17c502930a 100644 (file)
--- a/eqn.c
+++ b/eqn.c
@@ -1,4 +1,4 @@
-/*     $Id: eqn.c,v 1.76 2017/07/08 14:51:04 schwarze Exp $ */
+/*     $Id: eqn.c,v 1.78 2017/07/15 16:26:17 schwarze Exp $ */
 /*
  * Copyright (c) 2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2014, 2015, 2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -717,7 +717,7 @@ next_tok:
                        parent->bottom = mandoc_strdup("\\[ul]");
                        break;
                case EQN_TOK_BAR:
-                       parent->top = mandoc_strdup("\\[rl]");
+                       parent->top = mandoc_strdup("\\[rn]");
                        break;
                case EQN_TOK_DOT:
                        parent->top = mandoc_strdup("\\[a.]");
@@ -1041,7 +1041,7 @@ next_tok:
                                /* No boundary after last character. */
                                if (*cpn == '\0')
                                        break;
-                               if (ccln == ccl)
+                               if (ccln == ccl && *cp != ',' && *cpn != ',')
                                        continue;
                                /* Boundary found, split the text. */
                                if (parent->args == parent->expectargs) {