summaryrefslogtreecommitdiff
path: root/src/chroot-tools
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2014-07-10 01:59:29 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2014-07-10 01:59:29 -0400
commit68975fd77b4339f3f1e5cf557a350bf130f7da22 (patch)
tree7ee59c363d874b037b3d44e2552da42d70c0cb3e /src/chroot-tools
parent626705238075a1aceca518e4d464b5df6458750f (diff)
indent: dang, I still didn't get it right.
It didn't correctly handle lines matching /^\r$/
Diffstat (limited to 'src/chroot-tools')
-rwxr-xr-xsrc/chroot-tools/indent2
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);