From 7a9cc4a7da8d626f4484e36248129567b2bef7f8 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 18 Jul 2012 10:39:19 +0000 Subject: The mdoc(7) \*(Ba predefined string actually forces roman font; that's stupid because it may break enclosing font changes, but let's do the same for groff bug compatibility. --> Never use \*(Ba, use just plain "|"! <-- Also, predefined strings are already expanded by the roff(7) parser, so the mdoc(7) parser has to look for the expanded string. OpenBSD rev. mdoc.c 1.90 and predefs.in 1.3 --- mdoc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mdoc.c') diff --git a/mdoc.c b/mdoc.c index 88e3f5a8..72c39355 100644 --- a/mdoc.c +++ b/mdoc.c @@ -1,4 +1,4 @@ -/* $Id: mdoc.c,v 1.199 2012/07/16 09:51:54 schwarze Exp $ */ +/* $Id: mdoc.c,v 1.200 2012/07/18 10:39:19 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010 Ingo Schwarze @@ -982,7 +982,7 @@ mdoc_isdelim(const char *p) if (0 == strcmp(p + 1, ".")) return(DELIM_CLOSE); - if (0 == strcmp(p + 1, "*(Ba")) + if (0 == strcmp(p + 1, "fR|\\fP")) return(DELIM_MIDDLE); return(DELIM_NONE); -- cgit v1.2.3-56-ge451