summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/mdoc_macro.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2010-03-02 00:13:57 +0000
committerschwarze <schwarze@openbsd.org>2010-03-02 00:13:57 +0000
commite31cc33726bb63e51f0a2152a640fc07f84deccc (patch)
tree0076dc3b8996341bed247166d600e62973a1ee2a /usr.bin/mandoc/mdoc_macro.c
parentExtend the end-of-line key so that in normal mode a second press moves (diff)
downloadwireguard-openbsd-e31cc33726bb63e51f0a2152a640fc07f84deccc.tar.xz
wireguard-openbsd-e31cc33726bb63e51f0a2152a640fc07f84deccc.zip
Distinguish opening and closing delimiters, and close out block
macros after closing delimiters only, not after opening ones. Besides, neither roff nor old nor new groff consider braces { } as delimiters. This fixes some frequent misrenderings by mandoc, for example ".Ql (" being rendered as "`'(" instead of "`('".
Diffstat (limited to 'usr.bin/mandoc/mdoc_macro.c')
-rw-r--r--usr.bin/mandoc/mdoc_macro.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/mdoc_macro.c b/usr.bin/mandoc/mdoc_macro.c
index 210ecfd9534..b0c04c55387 100644
--- a/usr.bin/mandoc/mdoc_macro.c
+++ b/usr.bin/mandoc/mdoc_macro.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_macro.c,v 1.29 2010/02/26 12:12:24 schwarze Exp $ */
+/* $Id: mdoc_macro.c,v 1.30 2010/03/02 00:13:57 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -1155,7 +1155,7 @@ blk_part_exp(MACRO_PROT_ARGS)
break;
}
- if ( ! flushed && mdoc_isdelim(p)) {
+ if ( ! flushed && mdoc_isdelim(p) > 1) {
if ( ! rew_sub(MDOC_HEAD, m, tok, line, ppos))
return(0);
flushed = 1;