aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/out.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-11-12 08:21:05 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-11-12 08:21:05 +0000
commitc55c7c742e50a932784d8cd8689f4ad216fcc91f (patch)
tree12cfb0023cd119f9f5381c88897da41a2751843e /out.c
parent0e3a34d005ada7fe44f2109d7f478eaa1cdebbfe (diff)
downloadmandoc-c55c7c742e50a932784d8cd8689f4ad216fcc91f.tar.gz
mandoc-c55c7c742e50a932784d8cd8689f4ad216fcc91f.tar.zst
mandoc-c55c7c742e50a932784d8cd8689f4ad216fcc91f.zip
Fixed \c support for all input and output modes (documented in mandoc_char.7).
Diffstat (limited to 'out.c')
-rw-r--r--out.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/out.c b/out.c
index 713e5fa2..67860d9b 100644
--- a/out.c
+++ b/out.c
@@ -1,4 +1,4 @@
-/* $Id: out.c,v 1.10 2009/11/08 09:23:35 kristaps Exp $ */
+/* $Id: out.c,v 1.11 2009/11/12 08:21:05 kristaps Exp $ */
/*
* Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -331,6 +331,11 @@ a2roffdeco(enum roffdeco *d,
case ('['):
break;
+ case ('c'):
+ *d = DECO_NOSPACE;
+ *sz = 1;
+ return(1);
+
default:
*d = DECO_SPECIAL;
*word = wp;