From dbface5c83837d76b73a9ba99fde1ccc3afab3d5 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Tue, 12 Jun 2012 20:21:04 +0000 Subject: Add `cc' support. This was reported by espie@ and in the TODO. Caveat: `cc' has buggy behaviour when invoked in groff(1) and followed by a line-breaking control character macro, e.g., in a -man doc, .cc | .B foo 'B foo |cc 'B foo will cause groff(1) to behave properly for `.B' but inline the macro definition for `B' when invoked with the line-breaking macro. --- man.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'man.c') diff --git a/man.c b/man.c index ece4868f..d2297251 100644 --- a/man.c +++ b/man.c @@ -1,4 +1,4 @@ -/* $Id: man.c,v 1.116 2012/06/02 20:16:23 schwarze Exp $ */ +/* $Id: man.c,v 1.117 2012/06/12 20:21:04 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * @@ -131,7 +131,7 @@ man_parseln(struct man *m, int ln, char *buf, int offs) assert( ! (MAN_HALT & m->flags)); - return (mandoc_getcontrol(buf, &offs) ? + return (roff_getcontrol(m->roff, buf, &offs) ? man_pmacro(m, ln, buf, offs) : man_ptext(m, ln, buf, offs)); } -- cgit v1.2.3