summaryrefslogtreecommitdiffstats
path: root/man.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2012-06-12 20:21:04 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2012-06-12 20:21:04 +0000
commit998c9d785cfa1c8ef5531ee3fdfdf08d5b048264 (patch)
tree4c4a73bfd8209c2ac1c13746a548c2ce4e274b94 /man.c
parent9dc9bb2f44e3a94b8adc881ca071f6b8aaeae019 (diff)
downloadmandoc-998c9d785cfa1c8ef5531ee3fdfdf08d5b048264.tar.gz
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 'man.c')
-rw-r--r--man.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/man.c b/man.c
index 016c2167..caef76f5 100644
--- a/man.c
+++ b/man.c
@@ -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));
}