=================================================================== RCS file: /cvs/mandoc/eqn.c,v retrieving revision 1.33 retrieving revision 1.35 diff -u -p -r1.33 -r1.35 --- mandoc/eqn.c 2011/07/23 12:08:43 1.33 +++ mandoc/eqn.c 2011/07/23 13:31:03 1.35 @@ -1,4 +1,4 @@ -/* $Id: eqn.c,v 1.33 2011/07/23 12:08:43 kristaps Exp $ */ +/* $Id: eqn.c,v 1.35 2011/07/23 13:31:03 kristaps Exp $ */ /* * Copyright (c) 2011 Kristaps Dzonsons * @@ -184,6 +184,7 @@ static const struct eqnstr eqnfonts[EQNFONT__MAX] = { { "", 0 }, /* EQNFONT_NONE */ { "roman", 5 }, /* EQNFONT_ROMAN */ { "bold", 4 }, /* EQNFONT_BOLD */ + { "fat", 3 }, /* EQNFONT_FAT */ { "italic", 6 }, /* EQNFONT_ITALIC */ }; @@ -284,9 +285,15 @@ eqn_read(struct eqn_node **epp, int ln, * validate the full equation. */ - if (0 == strcmp(p, ".EN")) { + if (0 == strncmp(p, ".EN", 3)) { er = eqn_end(ep); *epp = NULL; + p += 3; + while (' ' == *p || '\t' == *p) + p++; + if ('\0' == *p) + return(er); + mandoc_msg(MANDOCERR_ARGSLOST, ep->parse, ln, pos, NULL); return(er); }