dbertoni    00/11/03 12:04:28

  Modified:    c/src/XPath FunctionNormalize.hpp
  Log:
  Changed how trailing whitespace is handled.
  
  Revision  Changes    Path
  1.11      +2 -2      xml-xalan/c/src/XPath/FunctionNormalize.hpp
  
  Index: FunctionNormalize.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XPath/FunctionNormalize.hpp,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- FunctionNormalize.hpp     2000/11/02 22:25:46     1.10
  +++ FunctionNormalize.hpp     2000/11/03 20:04:22     1.11
  @@ -190,7 +190,7 @@
                        thePreviousChar = theCurrentChar;
                }
   
  -             const VectorType::size_type             theSize = 
theVector.size();
  +             VectorType::size_type   theSize = theVector.size();
   
                if (theSize == 0)
                {
  @@ -201,7 +201,7 @@
                        if (isXMLWhitespace(theVector.back()) == true)
                        {
                                // The last character is a space, so remove it
  -                             theVector.pop_back();
  +                             --theSize;
                        }
   
                        return 
executionContext.getXObjectFactory().createString(XalanDOMString(theVector.begin(),
 theSize));
  
  
  

Reply via email to