From 998c9d785cfa1c8ef5531ee3fdfdf08d5b048264 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. --- mdoc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mdoc.c') diff --git a/mdoc.c b/mdoc.c index f3cf256e..b32614f3 100644 --- a/mdoc.c +++ b/mdoc.c @@ -302,7 +302,7 @@ mdoc_parseln(struct mdoc *m, int ln, char *buf, int offs) m->flags &= ~MDOC_SYNOPSIS; } - return(mandoc_getcontrol(buf, &offs) ? + return(roff_getcontrol(m->roff, buf, &offs) ? mdoc_pmacro(m, ln, buf, offs) : mdoc_ptext(m, ln, buf, offs)); } -- cgit