diff options
Diffstat (limited to 'fref.lex')
-rw-r--r-- | fref.lex | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -88,7 +88,8 @@ field(char *t) DO_ENTRIES #undef DO - fprintf(stderr, "%s: unrecognized field %%%.2s\n", name, t); + fprintf(stderr, "%s: unrecognized field %%%.2s at line %d\n", + name, t, lines); exit(1); } @@ -105,8 +106,6 @@ harvard() { int i; -#define EI(a, b) a ? a : b - /* Print label. */ pf("% = ", e.la); @@ -124,7 +123,7 @@ harvard() /* Print title, book/journal. */ if(*e.bo || *e.jo){ pf("%.\n", e.ti); - pf("\\fI%\\fP", EI(e.bo, e.jo)); + pf("\\fI%\\fP", e.bo ? e.bo : e.jo); pf(" ("ED" %)", e.ed); }else pf("\\fI%\\fP", e.ti); |