diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2014-07-10 01:59:29 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2014-07-10 01:59:29 -0400 |
commit | 68975fd77b4339f3f1e5cf557a350bf130f7da22 (patch) | |
tree | 7ee59c363d874b037b3d44e2552da42d70c0cb3e /src | |
parent | 626705238075a1aceca518e4d464b5df6458750f (diff) |
indent: dang, I still didn't get it right.
It didn't correctly handle lines matching /^\r$/
Diffstat (limited to 'src')
-rwxr-xr-x | src/chroot-tools/indent | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chroot-tools/indent b/src/chroot-tools/indent index 9a6247f..0f047c6 100755 --- a/src/chroot-tools/indent +++ b/src/chroot-tools/indent @@ -47,7 +47,7 @@ while (1) { $print_indent = 0; } elsif ($c eq "\r") { syswrite(STDOUT, $c, 1); - $print_indent = 1; + $print_indent = 1 if ($print_indent == 2); } else { syswrite(STDOUT, $indent) if ($print_indent < 2); syswrite(STDOUT, $c, 1); |