Added check for space in option name parsing

This commit is contained in:
Robert Osfield
2009-08-17 16:07:04 +00:00
parent 2d77db3627
commit 1241f8a0d6

View File

@@ -225,7 +225,7 @@ bool XmlNode::read(Input& input)
input.skipWhiteSpace();
std::string option;
std::string value;
while((c=input[0])>=0 && c!='>' && c!='"' && c!='\'' && c!='=')
while((c=input[0])>=0 && c!='>' && c!='"' && c!='\'' && c!='=' && c!=' ')
{
option.push_back(c);
++input;
@@ -276,7 +276,7 @@ bool XmlNode::read(Input& input)
if (!option.empty())
{
osg::notify(osg::INFO)<<"Assigning option "<<option<<" with value "<<value<<std::endl;
osg::notify(osg::NOTICE)<<"Assigning option "<<option<<" with value "<<value<<std::endl;
childNode->properties[option] = value;
}
}