Commit b71fba22 authored by Bruce Momjian's avatar Bruce Momjian

New entab version.

parent 723f6607
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
** entab.c - add tabs to a text file ** entab.c - add tabs to a text file
** by Bruce Momjian (root@candle.pha.pa.us) ** by Bruce Momjian (root@candle.pha.pa.us)
** **
** version 1.1 ** version 1.2
** **
** tabsize = 4 ** tabsize = 4
** **
...@@ -98,6 +98,7 @@ char **argv; ...@@ -98,6 +98,7 @@ char **argv;
if (escaped == FALSE) if (escaped == FALSE)
quote_char = ' '; quote_char = ' ';
escaped = FALSE; escaped = FALSE;
while (*src != NUL) while (*src != NUL)
{ {
col_in_tab++; col_in_tab++;
...@@ -150,6 +151,11 @@ char **argv; ...@@ -150,6 +151,11 @@ char **argv;
*(dst++) = ' '; *(dst++) = ' ';
} }
} }
else
{
*(dst++) = *src;
prv_spaces = 0;
}
} }
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment