Mercurial > vim
diff src/xxd/xxd.c @ 809:4f1b94b51e99 v7.0b02
updated for version 7.0b02
author | vimboss |
---|---|
date | Sun, 26 Mar 2006 21:06:50 +0000 |
parents | 0f9f4761ad9c |
children | 23f82b5d2814 |
line wrap: on
line diff
--- a/src/xxd/xxd.c +++ b/src/xxd/xxd.c @@ -275,6 +275,9 @@ long base_off; if (c == '\r') /* Doze style input file? */ continue; + if (c == ' ' || c == '\n' || c == '\t') /* allow multiple spaces */ + continue; + n3 = n2; n2 = n1; @@ -334,7 +337,7 @@ long base_off; n1 = -1; if ((++p >= cols) && !hextype) { - /* skip rest of line as garbaga */ + /* skip rest of line as garbage */ want_off = 0; while ((c = getc(fpi)) != '\n' && c != EOF) ;