From c807d1c9b38eacc1d097bc1c81fb8e77750809d3 Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Wed, 30 Jun 2010 18:43:33 +0000 Subject: [PATCH] as a white character can be ascii 160 code (nonbreakable space) git-svn-id: svn://ttmath.org/publicrep/ezc/trunk@297 e52654a7-88a9-db11-a3e9-0013d4bc506e --- src/Makefile.dep | 2 +- src/ezc.cpp | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Makefile.dep b/src/Makefile.dep index 3fda4df..1782db6 100755 --- a/src/Makefile.dep +++ b/src/Makefile.dep @@ -1,3 +1,3 @@ # DO NOT DELETE -ezc.o: ezc.h +edanticezc.o: ezc.h /home/tomek/roboczy/winix/core/log.h diff --git a/src/ezc.cpp b/src/ezc.cpp index f7c555b..fdeb802 100644 --- a/src/ezc.cpp +++ b/src/ezc.cpp @@ -298,7 +298,10 @@ return *(itext++); bool Pattern::IsWhite(int c ) { - if( c==' ' || c=='\t' || c==13 ) + // 13 is from a dos file at the end of a line (\r\n) + // 160 is an unbreakable space + + if( c==' ' || c=='\t' || c==13 || c==160 ) return true; return false;