aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tree.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-08-14 01:27:48 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-08-14 01:27:48 +0000
commit239614951577ba74078ca14afdba3508fb622fcb (patch)
treeb0cad4641ba4301bfba799b00568ad282f56890b /tree.c
parent6a76b50ce922aa5133e03e44dd1c91f7f6d7d745 (diff)
downloadmandoc-239614951577ba74078ca14afdba3508fb622fcb.tar.gz
mandoc-239614951577ba74078ca14afdba3508fb622fcb.tar.zst
mandoc-239614951577ba74078ca14afdba3508fb622fcb.zip
support tail arguments on the .ME and .UE macros,
used for example in the ditroff(7) manual of the groff package
Diffstat (limited to 'tree.c')
-rw-r--r--tree.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tree.c b/tree.c
index b9774e1c..416253f7 100644
--- a/tree.c
+++ b/tree.c
@@ -1,4 +1,4 @@
-/* $Id: tree.c,v 1.78 2018/04/11 17:11:13 schwarze Exp $ */
+/* $Id: tree.c,v 1.79 2018/08/14 01:27:48 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2013,2014,2015,2017,2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -289,6 +289,8 @@ print_man(const struct roff_node *n, int indent)
if (NODE_LINE & n->flags)
putchar('*');
printf("%d:%d", n->line, n->pos + 1);
+ if (NODE_DELIMC & n->flags)
+ putchar(')');
if (NODE_EOS & n->flags)
putchar('.');
putchar('\n');