aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/properties
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2008-01-25 12:14:52 +0000
committerJeremias Maerki <jeremias@apache.org>2008-01-25 12:14:52 +0000
commitab66977cddab31240ab6f132996939bddd243245 (patch)
tree03674771027ce29713b1db7b9613aadf4696ed1e /src/java/org/apache/fop/fo/properties
parentefee9986bd606e232cd547f431d39467dfd8a5e6 (diff)
downloadxmlgraphics-fop-ab66977cddab31240ab6f132996939bddd243245.tar.gz
xmlgraphics-fop-ab66977cddab31240ab6f132996939bddd243245.zip
Improved error tolerance: an enum property value with leading or trailing spaces is still recognized. Example: content-width="scale-to-fit "
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@615197 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/properties')
-rw-r--r--src/java/org/apache/fop/fo/properties/PropertyMaker.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/fo/properties/PropertyMaker.java b/src/java/org/apache/fop/fo/properties/PropertyMaker.java
index 3faf1971e..b1162563d 100644
--- a/src/java/org/apache/fop/fo/properties/PropertyMaker.java
+++ b/src/java/org/apache/fop/fo/properties/PropertyMaker.java
@@ -427,8 +427,8 @@ public class PropertyMaker implements Cloneable {
}
}
} else {
- // Check for keyword shorthand values to be substituted.
- pvalue = checkValueKeywords(pvalue);
+ // Check for keyword shorthand values to be substituted.
+ pvalue = checkValueKeywords(pvalue.trim());
newProp = checkEnumValues(pvalue);
}
if (newProp == null) {