projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
723f660
)
New entab version.
author
Bruce Momjian
Sat, 6 Sep 1997 02:46:43 +0000
(
02:46
+0000)
committer
Bruce Momjian
Sat, 6 Sep 1997 02:46:43 +0000
(
02:46
+0000)
src/tools/entab/entab.c
patch
|
blob
|
blame
|
history
diff --git
a/src/tools/entab/entab.c
b/src/tools/entab/entab.c
index 98b0104082d02d5bf4caf352ad333874b00d7585..28a7e34d30ab1e779bc37509aa8d9049587ce1c7 100644
(file)
--- 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 (
[email protected]
)
**
-** 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