aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache
diff options
context:
space:
mode:
authorAdrian Cumiskey <acumiskey@apache.org>2008-10-22 16:12:28 +0000
committerAdrian Cumiskey <acumiskey@apache.org>2008-10-22 16:12:28 +0000
commitbccf87ccbf0aef8db1601b8d4db2fd7e7bfb3bf5 (patch)
tree261bb996a4a86029adbf5e0fb1d78abac400650d /src/java/org/apache
parent9dba7fa3de2d1e528deec6dad18052c9a1d28ca1 (diff)
downloadxmlgraphics-fop-bccf87ccbf0aef8db1601b8d4db2fd7e7bfb3bf5.tar.gz
xmlgraphics-fop-bccf87ccbf0aef8db1601b8d4db2fd7e7bfb3bf5.zip
Improved name truncation warning.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@707112 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache')
-rw-r--r--src/java/org/apache/fop/render/afp/modca/AbstractNamedAFPObject.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/render/afp/modca/AbstractNamedAFPObject.java b/src/java/org/apache/fop/render/afp/modca/AbstractNamedAFPObject.java
index 558ad61ba..31a4b8430 100644
--- a/src/java/org/apache/fop/render/afp/modca/AbstractNamedAFPObject.java
+++ b/src/java/org/apache/fop/render/afp/modca/AbstractNamedAFPObject.java
@@ -71,8 +71,10 @@ public abstract class AbstractNamedAFPObject extends AbstractStructuredAFPObject
if (name.length() < nameLen) {
name = (name + " ").substring(0, nameLen);
} else if (name.length() > nameLen) {
- log.warn("Constructor:: name truncated to " + nameLen + " chars" + name);
- name = name.substring(0, nameLen);
+ String truncatedName = name.substring(0, nameLen);
+ log.warn("Constructor:: name '" + name + "'"
+ + " truncated to " + nameLen + " chars"
+ + " ('" + truncatedName + "')");
}
byte[] nameBytes = null;
try {