aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis Bernardo <lbernardo@apache.org>2013-10-30 08:57:55 +0000
committerLuis Bernardo <lbernardo@apache.org>2013-10-30 08:57:55 +0000
commit2d97c4c3db687e0a914cbe627dda16969a104578 (patch)
tree9aed71adcf93d55a9a2cc466a2872a1c528895ac
parent400a481147ee70c04e419591947a7fed7a8e81d3 (diff)
downloadxmlgraphics-fop-2d97c4c3db687e0a914cbe627dda16969a104578.tar.gz
xmlgraphics-fop-2d97c4c3db687e0a914cbe627dda16969a104578.zip
reverted 1536924 (FOP-2308)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1537012 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/java/org/apache/fop/fo/FOText.java2
-rw-r--r--test/layoutengine/standard-testcases/wrapper_text-transform_1.xml2
-rw-r--r--test/layoutengine/standard-testcases/wrapper_text-transform_2.xml4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/java/org/apache/fop/fo/FOText.java b/src/java/org/apache/fop/fo/FOText.java
index 2b707637c..2fc998c63 100644
--- a/src/java/org/apache/fop/fo/FOText.java
+++ b/src/java/org/apache/fop/fo/FOText.java
@@ -297,7 +297,7 @@ public class FOText extends FONode implements CharSequence {
*/
tmp.put(Character.toTitleCase(c));
} else {
- tmp.put(Character.toLowerCase(c));
+ tmp.put(c);
}
break;
default:
diff --git a/test/layoutengine/standard-testcases/wrapper_text-transform_1.xml b/test/layoutengine/standard-testcases/wrapper_text-transform_1.xml
index e5607d12c..886d94c7b 100644
--- a/test/layoutengine/standard-testcases/wrapper_text-transform_1.xml
+++ b/test/layoutengine/standard-testcases/wrapper_text-transform_1.xml
@@ -41,7 +41,7 @@
</fo>
<checks>
<eval expected="none: This tExT is left as-IS." xpath="//flow/block[1]"/>
- <eval expected="capitalize: This Text Is Capitalized." xpath="//flow/block[2]"/>
+ <eval expected="capitalize: This TExT Is Capitalized." xpath="//flow/block[2]"/>
<!-- spaces are discarded when around a line break -->
<eval expected="uppercase: THIS TEXT IS CONVERTED TO UPPERCASE.LIBERTÉ, ÉGALITÉ, FRATERNITÉ UND KÄSE." xpath="//flow/block[3]"/>
<eval expected="lowercase: this text is converted to lowercase. liberté, égalité,fraternité und käse." xpath="//flow/block[4]"/>
diff --git a/test/layoutengine/standard-testcases/wrapper_text-transform_2.xml b/test/layoutengine/standard-testcases/wrapper_text-transform_2.xml
index 8a0813337..e296ef183 100644
--- a/test/layoutengine/standard-testcases/wrapper_text-transform_2.xml
+++ b/test/layoutengine/standard-testcases/wrapper_text-transform_2.xml
@@ -42,7 +42,7 @@
</fo:root>
</fo>
<checks>
- <eval expected="1: This Text Is Capitalized." xpath="//flow/block[1]"/>
- <eval expected="2: This Text Is Capitalized." xpath="//flow/block[2]"/>
+ <eval expected="1: This TExT Is Capitalized." xpath="//flow/block[1]"/>
+ <eval expected="2: This TExT Is CapitAliZed." xpath="//flow/block[2]"/>
</checks>
</testcase>