diff options
author | jacob berkman <jacob@ximian.com> | 2002-05-22 22:46:33 +0000 |
---|---|---|
committer | Jacob Berkman <jberkman@src.gnome.org> | 2002-05-22 22:46:33 +0000 |
commit | dfe27fa02ece1a5008ecfc035bb7d7817fa6dd8b (patch) | |
tree | cd61e62133a7df897e4a64438e6075a23a82a20e | |
parent | 1ec6126a958bcaf91b54f22eeac16d136139b2fb (diff) | |
download | yelp-dfe27fa02ece1a5008ecfc035bb7d7817fa6dd8b.tar.gz |
fix last commit
2002-05-22 jacob berkman <jacob@ximian.com>
* help-converters/man/gnome-man2html.c (main): fix last commit
-rw-r--r-- | src/man2html/yelp-man2html.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/man2html/yelp-man2html.c b/src/man2html/yelp-man2html.c index 7bbf5379..fce73381 100644 --- a/src/man2html/yelp-man2html.c +++ b/src/man2html/yelp-man2html.c @@ -3782,15 +3782,14 @@ main(int argc, char **argv) len = strlen(output); for(i = 0; i < len; i++) { - if (isspace((unsigned char)output[i] && output[i+1] == '/')) + if (isspace((unsigned char)output[i] && (output[i+1] == '/'))) output[i] = '\0'; } - - /* + i = strlen(output) - 1; - while(isspace((unsigned char)output[i])) output[i--] = '\0'; - */ - + while (isspace((unsigned char)output[i])) + output[i--] = '\0'; + if (output[0]) { #ifdef HAVE_LIBBZ2 |