aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1997-09-06 02:46:43 +0000
committerBruce Momjian <bruce@momjian.us>1997-09-06 02:46:43 +0000
commitb71fba22e30dc0908cc391a0a529c3bf2255232d (patch)
treee93b0870eb71f349e4b8956d1eaa9d1adc699120
parent723f66076e424a8c8f01e216c8e95f624a496262 (diff)
downloadpostgresql-b71fba22e30dc0908cc391a0a529c3bf2255232d.tar.gz
postgresql-b71fba22e30dc0908cc391a0a529c3bf2255232d.zip
New entab version.
-rw-r--r--src/tools/entab/entab.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/tools/entab/entab.c b/src/tools/entab/entab.c
index 98b0104082d..28a7e34d30a 100644
--- a/src/tools/entab/entab.c
+++ b/src/tools/entab/entab.c
@@ -2,7 +2,7 @@
** entab.c - add tabs to a text file
** by Bruce Momjian (root@candle.pha.pa.us)
**
-** version 1.1
+** version 1.2
**
** tabsize = 4
**
@@ -98,6 +98,7 @@ char **argv;
if (escaped == FALSE)
quote_char = ' ';
escaped = FALSE;
+
while (*src != NUL)
{
col_in_tab++;
@@ -150,6 +151,11 @@ char **argv;
*(dst++) = ' ';
}
}
+ else
+ {
+ *(dst++) = *src;
+ prv_spaces = 0;
+ }
}
}
else