summaryrefslogtreecommitdiffstats
path: root/mandoc.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-04-07 11:25:38 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-04-07 11:25:38 +0000
commit84656c571204bca5fbcfe0ff94a6e39739bd404b (patch)
tree36337e7317266c2466c8fabc3ae37308e7923abf /mandoc.c
parent203a7fc981fef187b30804a2cab03e1d993e9152 (diff)
downloadmandoc-84656c571204bca5fbcfe0ff94a6e39739bd404b.tar.gz
Add support/ignoring of \f(xy, \f[X...], \F(xy, \FX, \F[X...] roff-style font escapes (noted by Frantisek Holop).
Diffstat (limited to 'mandoc.c')
-rw-r--r--mandoc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mandoc.c b/mandoc.c
index 69cdd8d6..dface045 100644
--- a/mandoc.c
+++ b/mandoc.c
@@ -73,10 +73,6 @@ mandoc_special(const char *p)
return(2);
case ('e'):
return(2);
- case ('f'):
- if ('\0' == *++p || ! isgraph((u_char)*p))
- return(0);
- return(3);
case ('s'):
if ('\0' == *++p)
return(2);
@@ -152,6 +148,10 @@ mandoc_special(const char *p)
}
return(c);
+ case ('f'):
+ /* FALLTHROUGH */
+ case ('F'):
+ /* FALLTHROUGH */
case ('*'):
if (0 == *++p || ! isgraph((u_char)*p))
return(0);