From 988a7fddf34ef77d1d4035c65039e77b1813c269 Mon Sep 17 00:00:00 2001 From: axel Date: Mon, 9 Oct 2006 19:59:31 +1000 Subject: [PATCH] Indent empty lines after a block command correctly. Thanks to Philip Ganchev for the suggestion. darcs-hash:20061009095931-ac50b-c958a6ec7a130019527e8e06d94af010d55ac3d5.gz --- parser.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/parser.c b/parser.c index 4d5589797..42cc043b8 100644 --- a/parser.c +++ b/parser.c @@ -3729,6 +3729,14 @@ int parser_test( const wchar_t * buff, } block_level[i] = last_level; } + for( j=len-1; j>=0; j-- ) + { + if( !wcschr( L" \n\t\r", buff[j] ) ) + break; + block_level[j] = count; + } + + } if( count!= 0 )