From 68975fd77b4339f3f1e5cf557a350bf130f7da22 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 10 Jul 2014 01:59:29 -0400 Subject: indent: dang, I still didn't get it right. It didn't correctly handle lines matching /^\r$/ --- src/chroot-tools/indent | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.2