aboutsummaryrefslogtreecommitdiffstats
path: root/fop-core
diff options
context:
space:
mode:
authorSimon Steiner <ssteiner@apache.org>2016-03-31 08:58:55 +0000
committerSimon Steiner <ssteiner@apache.org>2016-03-31 08:58:55 +0000
commit99884c15a90e5cde498198c29ebf5cebfc29266d (patch)
tree6c44bf96e3e7b939533caaab08e0f11ac4f63524 /fop-core
parent66ee5d6e8ec3d21cb3634ea55e8b9f364eeefac2 (diff)
downloadxmlgraphics-fop-99884c15a90e5cde498198c29ebf5cebfc29266d.tar.gz
xmlgraphics-fop-99884c15a90e5cde498198c29ebf5cebfc29266d.zip
FOP-2597: Allow hyphenation file without extension
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1737204 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'fop-core')
-rw-r--r--fop-core/src/main/java/org/apache/fop/apps/FopConfParser.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/fop-core/src/main/java/org/apache/fop/apps/FopConfParser.java b/fop-core/src/main/java/org/apache/fop/apps/FopConfParser.java
index 04bd0f3ae..a42ef1549 100644
--- a/fop-core/src/main/java/org/apache/fop/apps/FopConfParser.java
+++ b/fop-core/src/main/java/org/apache/fop/apps/FopConfParser.java
@@ -338,10 +338,10 @@ public class FopConfParser {
String llccKey = HyphenationTreeCache.constructLlccKey(lang, country);
- String type = aHyphPatConfig.getAttribute("type", null);
- if ("xml".equals(type)) {
+ String extension = aHyphPatConfig.getAttribute("extension", null);
+ if ("xml".equals(extension)) {
hyphPatNames.put(llccKey, filename + Hyphenator.XMLTYPE);
- } else if ("hyp".equals(type)) {
+ } else if ("hyp".equals(extension)) {
hyphPatNames.put(llccKey, filename + Hyphenator.HYPTYPE);
} else {
hyphPatNames.put(llccKey, filename);