From c241e8780088624f369379ba87215a475276b201 Mon Sep 17 00:00:00 2001 From: Lars Thorsen Date: Thu, 5 May 2011 12:44:28 +0200 Subject: Fix separator error in tokenlists. --- lib/xmerl/src/xmerl_xsd_type.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/xmerl/src/xmerl_xsd_type.erl') diff --git a/lib/xmerl/src/xmerl_xsd_type.erl b/lib/xmerl/src/xmerl_xsd_type.erl index 19951f030f..9352f4185d 100644 --- a/lib/xmerl/src/xmerl_xsd_type.erl +++ b/lib/xmerl/src/xmerl_xsd_type.erl @@ -612,7 +612,7 @@ check_NMTOKEN2([H|T]) -> check_NMTOKEN2(T). check_NMTOKENS(Value) -> - TokList = string:tokens(Value," "), + TokList = string:tokens(Value," \n\t\r"), lists:foreach(fun check_NMTOKEN/1,TokList), {ok,Value}. @@ -645,7 +645,7 @@ check_ENTITIES(Value) -> check_list_type(Value,fun check_ENTITY/1). check_list_type(Value,BaseTypeFun) -> - Tokens = string:tokens(Value," "), + Tokens = string:tokens(Value," \n\t\r"), lists:foreach(BaseTypeFun,Tokens), {ok,Value}. -- cgit v1.2.3