diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2012-06-12 20:21:04 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2012-06-12 20:21:04 +0000 |
commit | dbface5c83837d76b73a9ba99fde1ccc3afab3d5 (patch) | |
tree | fcc9e01c6182df1212aee9a5e658cf71de0d7d84 /mdoc.c | |
parent | 2adccb6ca2a7bc99a162422bc1bd9270a4239db5 (diff) | |
download | mandoc-dbface5c83837d76b73a9ba99fde1ccc3afab3d5.tar.gz mandoc-dbface5c83837d76b73a9ba99fde1ccc3afab3d5.tar.zst mandoc-dbface5c83837d76b73a9ba99fde1ccc3afab3d5.zip |
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.
Diffstat (limited to 'mdoc.c')
-rw-r--r-- | mdoc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: mdoc.c,v 1.197 2012/05/27 17:48:57 schwarze Exp $ */ +/* $Id: mdoc.c,v 1.198 2012/06/12 20:21:04 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org> @@ -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)); } |