From: Luis Bernardo Date: Tue, 29 Oct 2013 22:51:53 +0000 (+0000) Subject: FOP-2308: text-transform="capitalize" assumes input text is lowercase X-Git-Tag: fop-2_0~171 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=51dc03c675a424cb6f59e9634775cf17970564da;p=xmlgraphics-fop.git FOP-2308: text-transform="capitalize" assumes input text is lowercase git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1536924 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/fo/FOText.java b/src/java/org/apache/fop/fo/FOText.java index 2fc998c63..2b707637c 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(c); + tmp.put(Character.toLowerCase(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 886d94c7b..e5607d12c 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 @@ - + diff --git a/test/layoutengine/standard-testcases/wrapper_text-transform_2.xml b/test/layoutengine/standard-testcases/wrapper_text-transform_2.xml index e296ef183..8a0813337 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 @@ - - + +