aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-11-06 14:43:14 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-11-06 14:43:14 +0000
commit050315e505c48b0677069afc7175067e954adbea (patch)
tree915945f8e76a91a6651c3575b4b1cae1751f9547 /mandoc.c
parenta5d5b6e354fbae06bcd3677e4c366370ade84e2a (diff)
downloadmandoc-050315e505c48b0677069afc7175067e954adbea.tar.gz
mandoc-050315e505c48b0677069afc7175067e954adbea.tar.zst
mandoc-050315e505c48b0677069afc7175067e954adbea.zip
Accomodate for \f(Cx formatting. Noted by Andreas Vogele, thanks!
Diffstat (limited to 'mandoc.c')
-rw-r--r--mandoc.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/mandoc.c b/mandoc.c
index 9fdf9f98..82756712 100644
--- a/mandoc.c
+++ b/mandoc.c
@@ -1,4 +1,4 @@
-/* $Id: mandoc.c,v 1.60 2011/10/24 20:30:57 schwarze Exp $ */
+/* $Id: mandoc.c,v 1.61 2011/11/06 14:43:14 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -369,8 +369,15 @@ out:
switch (gly) {
case (ESCAPE_FONT):
- if (1 != rlim)
+ /*
+ * Pretend that the constant-width font modes are the
+ * same as the regular font modes.
+ */
+ if (2 == rlim && 'C' == *rstart)
+ rstart++;
+ else if (1 != rlim)
break;
+
switch (*rstart) {
case ('3'):
/* FALLTHROUGH */