break;
}
}
+ else if ( *p1 == '<' && ( ( p1 + 3 ) < end_p ) && p1[1] == '!' && p1[2] == '-' && p1[3] == '-' )
+ {
+ p1 += 4;
- ++p1;
+ for (;;)
+ {
+ while ( *p1 != '>' && p1 < end_p )
+ {
+ ++p1;
+ }
+
+ if ( *(p1-2) == '-' && *(p1-1) == '-' && *p1 == '>' )
+ {
+ break;
+ }
+
+ ++p1;
+ }
+ }
+ else
+ {
+ ++p1;
+ }
}
if ( isspace(*p2) )
for ( i = doc_attr_nvpairs.begin(); i != doc_attr_nvpairs.end(); ++i )
{
// trim leading and trailing whitespace an right-most character, i.e., \"
- std::string trimmed = i->substr(i->find_first_not_of(" "), i->find_last_not_of(" "));
+ std::string trimmed = i->substr(i->find_first_not_of(" "), i->find_last_not_of(" \r\n\t"));
std::list<std::string> nv_tokens = km_token_split(trimmed, "=\"");
if ( nv_tokens.size() != 2 )
if ( found_list.size() == 1 )
{
FileReader Reader;
- DefaultLogSink().Debug("retrieving resource %s from file %s\n", buf, found_list.front().c_str());
+ DefaultLogSink().Debug("Retrieving resource %s from file %s\n", buf, found_list.front().c_str());
result = Reader.OpenRead(found_list.front().c_str());