=================================================================== RCS file: /cvs/mandoc/main.c,v retrieving revision 1.60 retrieving revision 1.61 diff -u -p -r1.60 -r1.61 --- mandoc/main.c 2010/03/22 20:43:00 1.60 +++ mandoc/main.c 2010/04/12 19:27:22 1.61 @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.60 2010/03/22 20:43:00 kristaps Exp $ */ +/* $Id: main.c,v 1.61 2010/04/12 19:27:22 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -228,9 +228,9 @@ static void usage(void) { - (void)fprintf(stderr, "usage: %s [-V] [-foption...] " + (void)fprintf(stderr, "usage: %s [-V] [-foption] " "[-mformat] [-Ooption] [-Toutput] " - "[-Werr...]\n", progname); + "[-Werr] [file...]\n", progname); exit(EXIT_FAILURE); } @@ -380,6 +380,12 @@ fdesc(struct buf *blk, struct buf *ln, struct curparse comment = 1; pos -= 2; + for (; pos > 0; --pos) { + if (ln->buf[pos] != ' ') + break; + if (ln->buf[pos - 1] == '\\') + break; + } continue; }