=================================================================== RCS file: /cvs/mandoc/man_validate.c,v retrieving revision 1.34 retrieving revision 1.37 diff -u -p -r1.34 -r1.37 --- mandoc/man_validate.c 2010/04/03 14:12:48 1.34 +++ mandoc/man_validate.c 2010/05/15 15:54:39 1.37 @@ -1,4 +1,4 @@ -/* $Id: man_validate.c,v 1.34 2010/04/03 14:12:48 kristaps Exp $ */ +/* $Id: man_validate.c,v 1.37 2010/05/15 15:54:39 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -94,7 +94,7 @@ static const struct man_valid man_valids[MAN_MAX] = { { NULL, NULL }, /* DT */ { NULL, NULL }, /* UC */ { NULL, NULL }, /* PD */ - { NULL, posts_eq0 }, /* Sp */ + { NULL, posts_le1 }, /* Sp */ { pres_bline, posts_le1 }, /* Vb */ { pres_bline, posts_eq0 }, /* Ve */ { pres_roff, NULL }, /* de */ @@ -178,7 +178,7 @@ check_root(CHKARGS) */ m->meta.title = mandoc_strdup("unknown"); m->meta.date = time(NULL); - m->meta.msec = 1; + m->meta.msec = mandoc_strdup("1"); } return(1); @@ -229,9 +229,7 @@ check_text(CHKARGS) if ('\t' == *p || isprint((u_char)*p)) continue; - if (MAN_IGN_CHARS & m->pflags) - return(man_pwarn(m, n->line, pos, WNPRINT)); - return(man_perr(m, n->line, pos, WNPRINT)); + return(man_pwarn(m, n->line, pos, WNPRINT)); } return(1);