Skip to content

Commit b71fba2

Browse files
committed
New entab version.
1 parent 723f660 commit b71fba2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/tools/entab/entab.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
** entab.c - add tabs to a text file
33
** by Bruce Momjian (root@candle.pha.pa.us)
44
**
5-
** version 1.1
5+
** version 1.2
66
**
77
** tabsize = 4
88
**
@@ -98,6 +98,7 @@ char **argv;
9898
if (escaped == FALSE)
9999
quote_char = ' ';
100100
escaped = FALSE;
101+
101102
while (*src != NUL)
102103
{
103104
col_in_tab++;
@@ -150,6 +151,11 @@ char **argv;
150151
*(dst++) = ' ';
151152
}
152153
}
154+
else
155+
{
156+
*(dst++) = *src;
157+
prv_spaces = 0;
158+
}
153159
}
154160
}
155161
else

0 commit comments

Comments
 (0)