[sword-cvs] sword/src/utilfuns utilxml.cpp,1.10,1.11
sword@www.crosswire.org
sword@www.crosswire.org
Tue, 15 Jul 2003 19:22:34 -0700
Update of /usr/local/cvsroot/sword/src/utilfuns
In directory www:/tmp/cvs-serv24839/src/utilfuns
Modified Files:
utilxml.cpp
Log Message:
no message
Index: utilxml.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/src/utilfuns/utilxml.cpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- utilxml.cpp 5 Jul 2003 04:58:42 -0000 1.10
+++ utilxml.cpp 16 Jul 2003 02:22:32 -0000 1.11
@@ -45,8 +45,13 @@
if (!buf[i])
break;
}
- if (buf[i-1] == '/')
- empty = true;
+ for (;i;i--) {
+ if (buf[i] == '/')
+ empty = true;
+ if (!strchr(" \n>\t", buf[i]))
+ break;
+ }
+
parsed = true;
if (name) delete [] name;
if (value) delete [] value;