=================================================================== RCS file: /cvs/mandoc/Attic/mdocterm.c,v retrieving revision 1.39 retrieving revision 1.41 diff -u -p -r1.39 -r1.41 --- mandoc/Attic/mdocterm.c 2009/03/11 00:39:58 1.39 +++ mandoc/Attic/mdocterm.c 2009/03/14 05:36:07 1.41 @@ -1,4 +1,4 @@ -/* $Id: mdocterm.c,v 1.39 2009/03/11 00:39:58 kristaps Exp $ */ +/* $Id: mdocterm.c,v 1.41 2009/03/14 05:36:07 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -70,6 +70,7 @@ static struct termenc termenc1[] = { { "&", TERMSYM_BREAK }, { "e", TERMSYM_SLASH }, { "q", TERMSYM_DQUOTE }, + { "|", TERMSYM_BREAK }, { NULL, 0 } }; @@ -125,7 +126,7 @@ static struct termenc termenc2[] = { { NULL, 0 } }; -static struct termsym termsym_ansi[] = { +static struct termsym termsym_ansi[TERMSYM_MAX] = { { "]", 1 }, /* TERMSYM_RBRACK */ { "[", 1 }, /* TERMSYM_LBRACK */ { "<-", 2 }, /* TERMSYM_LARROW */ @@ -430,8 +431,8 @@ word(struct termp *p, const char *word) return; } - len = strlen(word); - assert(len > 0); + if (0 == (len = strlen(word))) + errx(1, "blank line not in literal context"); if (mdoc_isdelim(word)) { if ( ! (p->flags & TERMP_IGNDELIM))