diff options
author | Luis Bernardo <lbernardo@apache.org> | 2013-03-16 00:01:28 +0000 |
---|---|---|
committer | Luis Bernardo <lbernardo@apache.org> | 2013-03-16 00:01:28 +0000 |
commit | 2008636c7e152009d9eefdd68caf04a2906808b5 (patch) | |
tree | 6087e744d36c1730781ed79fdf79cf55c6ebe14f /src/java/org | |
parent | 0b97b8f60a914736582347f62ebbb3fe736dd6d1 (diff) | |
download | xmlgraphics-fop-2008636c7e152009d9eefdd68caf04a2906808b5.tar.gz xmlgraphics-fop-2008636c7e152009d9eefdd68caf04a2906808b5.zip |
FOP-2044: Hyphenation of Uppercase Words, Combined with Underlines; applied second patch by Robert Meyer; expanded the layout test case.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1457168 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org')
-rw-r--r-- | src/java/org/apache/fop/hyphenation/HyphenationTree.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/hyphenation/HyphenationTree.java b/src/java/org/apache/fop/hyphenation/HyphenationTree.java index 1709d204a..70fc3f05a 100644 --- a/src/java/org/apache/fop/hyphenation/HyphenationTree.java +++ b/src/java/org/apache/fop/hyphenation/HyphenationTree.java @@ -403,7 +403,8 @@ public class HyphenationTree extends TernaryTree for (int iNonLetterWord = 0; iNonLetterWord < nonLetterWords.size(); iNonLetterWord++) { char[] nonLetterWord = nonLetterWords.get(iNonLetterWord); Hyphenation curHyph = hyphenate(nonLetterWord, 0, nonLetterWord.length, - remainCharCount, pushCharCount); + (iNonLetterWord == 0) ? remainCharCount : 1, + (iNonLetterWord == nonLetterWords.size() - 1) ? pushCharCount : 1); if (curHyph == null) { continue; } |