aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache
diff options
context:
space:
mode:
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 {