|
3 | 3 | *
|
4 | 4 | * Copyright (c) 2000-2003, PostgreSQL Global Development Group
|
5 | 5 | *
|
6 |
| - * $PostgreSQL: pgsql/src/bin/psql/help.c,v 1.90 2004/07/15 03:56:06 momjian Exp $ |
| 6 | + * $PostgreSQL: pgsql/src/bin/psql/help.c,v 1.91 2004/08/07 03:36:07 momjian Exp $ |
7 | 7 | */
|
8 | 8 | #include"postgres_fe.h"
|
9 | 9 | #include"common.h"
|
@@ -310,9 +310,9 @@ helpSQL(const char *topic, unsigned short int pager)
|
310 | 310 | intnl_count=0;
|
311 | 311 | char*ch;
|
312 | 312 |
|
313 |
| -/* don't care about trailing spaces */ |
| 313 | +/* don't care about trailing spacesor semicolons*/ |
314 | 314 | len=strlen(topic);
|
315 |
| -while (topic[len-1]==' ') |
| 315 | +while (topic[len-1]==' '||topic[len-1]==';') |
316 | 316 | len--;
|
317 | 317 |
|
318 | 318 | /* Count newlines for pager */
|
|