-/* $Id: main.c,v 1.74 2010/05/15 22:28:22 kristaps Exp $ */
+/* $Id: main.c,v 1.75 2010/05/16 00:04:46 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
* 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;
-/* $Id: man.c,v 1.70 2010/05/15 22:44:04 kristaps Exp $ */
+/* $Id: man.c,v 1.71 2010/05/16 00:04:46 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
man_parseln(struct man *m, int ln, char *buf)
{
- return('.' == *buf || '\'' == *buf ?
+ return(('.' == *buf || '\'' == *buf) ?
man_pmacro(m, ln, buf) :
man_ptext(m, ln, buf));
}
-/* $Id: mdoc.c,v 1.133 2010/05/15 16:24:37 kristaps Exp $ */
+/* $Id: mdoc.c,v 1.134 2010/05/16 00:04:46 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
return(0);
m->flags |= MDOC_NEWLINE;
- return('.' == *buf ?
+ return(('.' == *buf || '\'' == *buf) ?
mdoc_pmacro(m, ln, buf) :
mdoc_ptext(m, ln, buf));
}