=================================================================== RCS file: /cvs/mandoc/term.c,v retrieving revision 1.157 retrieving revision 1.159 diff -u -p -r1.157 -r1.159 --- mandoc/term.c 2010/07/02 10:50:50 1.157 +++ mandoc/term.c 2010/07/04 22:04:04 1.159 @@ -1,6 +1,7 @@ -/* $Id: term.c,v 1.157 2010/07/02 10:50:50 kristaps Exp $ */ +/* $Id: term.c,v 1.159 2010/07/04 22:04:04 schwarze Exp $ */ /* - * Copyright (c) 2008, 2009 Kristaps Dzonsons + * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons + * Copyright (c) 2010 Ingo Schwarze * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -30,6 +31,7 @@ #include "mandoc.h" #include "chars.h" #include "out.h" +#include "regs.h" #include "term.h" #include "main.h" @@ -377,6 +379,11 @@ res(struct termp *p, const char *word, size_t len) size_t sz; rhs = chars_a2res(p->symtab, word, len, &sz); + if (NULL == rhs) { + rhs = roff_getstrn(word, len); + if (rhs) + sz = strlen(rhs); + } if (rhs) encode(p, rhs, sz); }