From 7571ab0ca1e9d2761983903c33f5559ab871d532 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Sun, 21 Jul 2013 17:51:37 +1000 Subject: [PATCH] scanner: fix do_strip bug. do_strip wasn't striping tabs properly Signed-off-by: NeilBrown --- csrc/scanner.mdc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csrc/scanner.mdc b/csrc/scanner.mdc index 06fef7d..57f9e21 100644 --- a/csrc/scanner.mdc +++ b/csrc/scanner.mdc @@ -844,7 +844,7 @@ a flag that tells us whether or not we need to strip. state->offset += 1; n -= 1; } - while (n == 4 && state->node->code.txt[0] == '\t') { + while (n == 4 && state->node->code.txt[state->offset] == '\t') { state->offset += 1; n -= 4; } -- 2.43.0