diff options
Diffstat (limited to 'src/DocumentAccessor.cxx')
| -rw-r--r-- | src/DocumentAccessor.cxx | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/src/DocumentAccessor.cxx b/src/DocumentAccessor.cxx index 4cb90c3e4..c187f2a44 100644 --- a/src/DocumentAccessor.cxx +++ b/src/DocumentAccessor.cxx @@ -170,7 +170,8 @@ int DocumentAccessor::IndentAmount(int line, int *flags, PFNIsCommentLeader pfnI  	*flags = spaceFlags;  	indent += SC_FOLDLEVELBASE;  	// if completely empty line or the start of a comment... -	if (isspace(ch) || (pfnIsCommentLeader && (*pfnIsCommentLeader)(*this, pos, end-pos)) ) +	if ((ch == ' ' || ch == '\t' || ch == '\n' || ch == '\r') ||  +		(pfnIsCommentLeader && (*pfnIsCommentLeader)(*this, pos, end-pos)) )  		return indent | SC_FOLDLEVELWHITEFLAG;  	else  		return indent; | 
