commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From skitch...@apache.org
Subject svn commit: r153213 - jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/SAXHandler.java
Date Thu, 10 Feb 2005 13:00:26 GMT
Author: skitching
Date: Thu Feb 10 05:00:25 2005
New Revision: 153213

URL: http://svn.apache.org/viewcvs?view=rev&rev=153213
Log:
Apply substitutor to bodySegment text as well as body text.

Modified:
    jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/SAXHandler.java

Modified: jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/SAXHandler.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/SAXHandler.java?view=diff&r1=153212&r2=153213
==============================================================================
--- jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/SAXHandler.java
(original)
+++ jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/SAXHandler.java
Thu Feb 10 05:00:25 2005
@@ -704,6 +704,12 @@
         StringBuffer currTextSegment = context.getBodyTextSegment();
         if (currTextSegment.length() > 0) {
             String segment = currTextSegment.toString();
+
+            Substitutor substitutor = getSubstitutor();
+            if (substitutor != null) {
+                segment = substitutor.substitute(segment);
+            }
+
             List parentMatches = (List) context.peekMatchingActions();
             int len = parentMatches.size();
             for(int i=0; i<len; ++i) {



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message