You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by ss...@apache.org on 2016/03/31 10:58:55 UTC
svn commit: r1737204 -
/xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/apps/FopConfParser.java
Author: ssteiner
Date: Thu Mar 31 08:58:55 2016
New Revision: 1737204
URL: http://svn.apache.org/viewvc?rev=1737204&view=rev
Log:
FOP-2597: Allow hyphenation file without extension
Modified:
xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/apps/FopConfParser.java
Modified: xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/apps/FopConfParser.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/apps/FopConfParser.java?rev=1737204&r1=1737203&r2=1737204&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/apps/FopConfParser.java (original)
+++ xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/apps/FopConfParser.java Thu Mar 31 08:58:55 2016
@@ -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);
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org