diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2010-05-16 01:16:26 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2010-05-16 01:16:26 +0000 |
commit | 7f4eb668f75e7eb54e741c9b360b86428cab874d (patch) | |
tree | 2a1b5df48985c811bd0228e732d249769c720135 /usr.bin | |
parent | 08303d07ede570701a32bd51204b1689f2544119 (diff) |
allow the single quote as a control character in place of the dot
at all relevant places;
from kristaps@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/mandoc/main.c | 4 | ||||
-rw-r--r-- | usr.bin/mandoc/mdoc.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/mandoc/main.c b/usr.bin/mandoc/main.c index 1ddb5844941..63bd938dfdc 100644 --- a/usr.bin/mandoc/main.c +++ b/usr.bin/mandoc/main.c @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.30 2010/05/16 00:54:03 schwarze Exp $ */ +/* $Id: main.c,v 1.31 2010/05/16 01:16:25 schwarze Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -563,7 +563,7 @@ pset(const char *buf, int pos, struct curparse *curp, * default to -man, which is more lenient. */ - if (buf[0] == '.') { + if ('.' == buf[0] || '\'' == buf[0]) { for (i = 1; buf[i]; i++) if (' ' != buf[i] && '\t' != buf[i]) break; diff --git a/usr.bin/mandoc/mdoc.c b/usr.bin/mandoc/mdoc.c index df6712e1537..45930652491 100644 --- a/usr.bin/mandoc/mdoc.c +++ b/usr.bin/mandoc/mdoc.c @@ -1,4 +1,4 @@ -/* $Id: mdoc.c,v 1.50 2010/05/15 18:25:51 schwarze Exp $ */ +/* $Id: mdoc.c,v 1.51 2010/05/16 01:16:25 schwarze Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -287,7 +287,7 @@ mdoc_parseln(struct mdoc *m, int ln, char *buf) return(0); m->flags |= MDOC_NEWLINE; - return('.' == *buf ? + return(('.' == *buf || '\'' == *buf) ? mdoc_pmacro(m, ln, buf) : mdoc_ptext(m, ln, buf)); } |